SoShadeProcessing2d engine More...
#include <ImageViz/Engines/ImageFiltering/Sharpening/SoShadeProcessing2d.h>
Public Member Functions | |
SoShadeProcessing2d () | |
Public Attributes | |
SoSFImageDataAdapter | inImage |
SoImageVizEngineOutput < SoSFImageDataAdapter, SoImageDataAdapter * > | outImage |
The SoShadeProcessing2d engine provides a shadowing effect on a grayscale image.
For an introduction, see section Images Filters.
A high-pass filter is a convolution with kernels of positive and negative coefficients. The output image is a linear combination of the Laplacian and the original image. Because the result of this convolution is a linear combination of the original image and the Laplacian which detects contours, a contrast enhancement is obtained.
The SoShadeProcessing2d filter provides a shadowing effect on a grayscale image. The SoShadeProcessing2d filter is actually a combination of the search of the maxima and mean values. The proposed algorithm is from S. Steinberg, and allows the visualisation of some of the edges of objects in the image. We suppose that the light is coming on the object from the left side, and that the gray levels correspond to the height of the object. The shaded image will show the shadow of each object under this light condition.
Note: Because the resulting image is a signed type (containing positive and negative values), it must be viewed by changing the display context.
inImage | NULL |
SoShadeProcessing2d::SoShadeProcessing2d | ( | ) |
Constructor.
The input image.
Default value is NULL. Supported types include: grayscale color image.
The output image.
Default value is NULL. Supported types include: grayscale binary label color image.