topographic_sketch — Compute the topographic primal sketch of an image.
topographic_sketchcomputes the topographic primal sketch of the input image
Image. This is done by approximating the image locally by a bicubic polynomial (“facet model”). It serves to calculate the first and second partial derivatives of the image, and thus to classify the image into 11 classes. These classes are coded in the output image
Sketchas numbers from 1 to 11. The classes are as follows:
Note that filter operators may return unexpected results if an image with a reduced domain is used as input. Please refer to the chapter Filters.
Image for which the topographic primal sketch is to be computed.
Label image containing the 11 classes.
* To extract the Ridges from a Image read_image(Image,'sinus') topographic_sketch(Image,Sketch) threshold(Sketch,Ridges,3,3)
Let n be the number of pixels in the image. Then O(n) operations are performed.
topographic_sketch returns 2 (H_MSG_TRUE) if all parameters are
correct. If the input is empty the behavior can be set via
If necessary, an exception is raised.
R. Haralick, L. Shapiro: “Computer and Robot Vision, Volume I”; Reading, Massachusetts, Addison-Wesley; 1992; Kapitel 8.13.