FxBitonalRemoveIsolatedDots2x2 Method (GdPictureImaging)
In This Topic
Removes 4 pixels-sized isolated black dots in the 8 directions: E, NE, SE, S, SW, W, NW, N in a
GdPicture image or in an area of a GdPicture image defined by SetROI() method.
Syntax
Parameters
- ImageID
- GdPicture image identifier.
Return Value
A member of the GdPictureStatus enumeration.
Example
Removing isolated dots from a black and white tiff image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
// LoadInMemory parameter is set to true in order to be able to update the input file.
int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.tif", true);
// Remove 4 pixels-sized isolated black dots in the 8 directions: E, NE, SE, S, SW, W, NW, N.
gdpictureImaging.FxBitonalRemoveIsolatedDots2x2(imageID);
gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
gdpictureImaging.ReleaseGdPictureImage(imageID);
}
Example
Removing isolated dots from a black and white tiff image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
// LoadInMemory parameter is set to true in order to be able to update the input file.
int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.tif", true);
// Remove 4 pixels-sized isolated black dots in the 8 directions: E, NE, SE, S, SW, W, NW, N.
gdpictureImaging.FxBitonalRemoveIsolatedDots2x2(imageID);
gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also