In this exercise you convert a grayscale image to bitonal (black and white) images and clean up the converted image:
By converting the grayscale image to a bitonal (black and white) image, inverting the image, and removing speckles, you make the soil boundaries in the image easier to identify. The resulting map can be readily converted to vector using the AutoCAD Raster Design toolset Vectorization Tools.
In this lesson, you also export the modified image with a world correlation file.
Before doing this exercise, ensure that AutoCAD Raster Design toolset options are set as described in the exercise Exercise A1: Setting AutoCAD Raster Design Toolset Options.
Convert the grayscale image to bitonal
On the Threshold tab, use the slider to determine which pixels will be black and which will be white after you convert the image. The shades of gray to the left of the slider become black, and those to the right become white.
This exercise uses one image. However, if you select multiple images, you can select the image name below the preview to observe the effect of the threshold value on that image. The selected images convert to black and white when you click Apply and Close.
The following example shows how the image of the soils map should appear after you convert it to a bitonal (black and white) image. The image has a light background and dark line work that is difficult to read. The image also contains large speckles.
Export the image
Invert the image
The following example shows how the image of the soils map should appear after you invert the light and dark areas of the image. The image still contains many large speckles.
Remove speckles from the image
You are prompted to continue or to respecify the pixel size.
The pixels about to be removed are highlighted. In a real project, this is when you can zoom in to inspect the image and ensure that essential data is not highlighted for removal. You can specify pixels to exclude from the removal set in a variety of ways.
The following example shows how the image of the soils map should appear after you remove the speckles.