PANDORE Version 6 | GREYC-IMAGE |
psharp performs a contrast sharpening of the input image im_in using the Laplacian unsharp masking. The objective of sharpening is to highlight fine details and to enhance details that are blurred. It consists in shrinking the width of intensity variation without affecting the mean intensity of regions on both sides of the variation.
The unsharp masking algorithm is based on the subtraction of a degree
times of the input image with the laplacian of the image. It is implemented
by a spatial filtering with the following filters that depends on the
connexity.
For example, 2D filters are:
4-connexity 8-connexity 0 -1 0 -1 -1 -1 -1 4*degree -1 or -1 8*degree -1 0 -1 0 -1 -1 -1
For 3D filters, the center is set with 6*degree in case of 6-connexity, or 26*degree in case of 26-connexity.
connexity specifies the type of connexity between neighbours (4 and 8 for 2D image and 6 or 26 for 3D image).
degree is a real value that specifies the degree of sharpening. The more is the degree the less is the effect of sharpening. Typical values are 0.7, 1.0, 1.7, 2, 7.
Returns SUCCESS or FAILURE in case of invalid parameter values.
Sharpens the tangram.pan using the laplacian (which corresponds to degree=1).
psharp 8 1 tangram.pan a.pan
Rehaussement du contraste par convolution.
Author: Régis Clouard