Boundary detection in petrographic images and applications of S-transform space-wavenumber analysis to image processing for texture definition