Details of Update
Loading PDF pages – ‘No Pages Found’ message
Fixed – Scan2CAD would, under some circumstances, report a ‘no pages found’ message when loading a PDF file.
6 New Commands added for Command Line file usage.
- Include (or exclude) the currently loaded raster image from inclusion in a saved SVG or SVGZ file. Must be placed before any SAVEVECTORSVG or SAVEVECTORSVGZ command.
SVGATTACHRASTER – 1 argument
1 [1 = Include, 0 = Exclude]
- Save the currently loaded vector image in an SVG format file.
SAVEVECTORSVG – No arguments
- Save the currently loaded vector image in an SVGZ (compressed SVG) format file.
SAVEVECTORSVGZ – No arguments
- Scale the currently loaded vectors in either the vertical or horizontal plane (or both)
SCALEVECTOR – 2 arguments
2.0 [ScaleX, scale vectors by 2 times in the horizontal plane] 2.0 [ScaleY, scale vectors by 2 times in the vertical plane]
- Emit a BEEP wherever encountered during the Command Line file run
If HideWindow is invoked, it is not always evident when the Command Line file has been completed.
Placing COMMANDBEEP before the EXIT command will give an audio indication of completion of the Command Line file.
COMMANDBEEP – No arguments
- Close the currently loaded Raster file
CLOSERASTER – No arguments
New option added to ScanLine vectorization settings
There are now 2 options available for this vectorization type.
Option 1 – ScanLines as Solids (new)
Option 2 – Vector Lines per ScanLine (existing)
To select option 1 tick ‘ScanLines as Solids.’
To select option 2 untick ‘ScanLines as Solids’ and then set the number of required vector lines per scanline.
32k x 32k vectorization limit removed
Scan2CAD v8.2h onwards increased the raster file size limit that could be loaded into Scan2CAD to 64k x 64k but still had a restriction to vectorizing only the first 32k x 32k part of the raster image.
This limit is now removed and Scan2CAD will vectorize the full raster image.
Image Segmentation added to Scan2CAD [Pro version only]
What is Image Segmentation
It is the process of grouping areas of adjacent pixels of similar color/intensity into zones of color that best represent the original image.
Segmentation can be applied to 24bit 16.7million color and 8bit 256 grayscale color images. Other image color depths will automatically be converted to one of these before being segmented. Segmentation is applied to the whole image.
To better illustrate segmentation we will use the following Lilly flower image, highlighting just a part for clarity.
16M color image with part highlighted Part of 16M color image
If we were to simply Reduce colors automatically then we would have the following results. Each pixel and its color would be reduced without any relevance given to its significance with respect to any adjacent pixel colors. The results could not easily be vectorized without further manual color reduction.
Automatic reduction 256 color Automatic reduction 32 color
The following segmentation examples at various settings of color reduction illustrate the greatly enhanced benefits of segmentation. Any of the images below could be used for Picture/Photo or Outline vectorization.
Segmented 256 color Segmented 32 color
Segmented 16 color Segmented 6 color
To Apply Segmentation
- Select Raster Effects Menu > Segment
- You should now be presented with the Segment Colors dialog
- The Preview Window will immediately show the results of any changes made using the following sliders on the right hand side of the dialogue. The sliders affect the whole image.
- Feature Definition slider
This slider affects the degree of ‘sharpness’ applied to image elements when segmenting.
If you have relatively small image elements you wish to ensure are retained then set the slider towards the ‘High’ mark.
If you wish to reduce the significance of smaller image elements (such as ‘noise’) then set the slider towards the ‘Low’ mark
- Maximum Colors slider
Set the maximum number of colors that are required after segmentation.
The slider has a range selection of 2-32, 64,128 and 256 colors.
Segmentation will normally consider all colors in the original image and select the best set of colors to represent the image.
You can however restrict the initial range of colors considered. Before calling this dialog, window onto a selected area of the full image in the Scan2CAD main viewing window. If a window has been selected then it will be highlighted by a green rectangle in the Preview Window. Only the colors within that window will be considered in the final colors selection that will be applied to the whole image. This can be very useful if dealing with portrait images where you may only want to consider colors relevant to the subject rather than including any background colors.
The color selection will always include Black and White even if they are not present on the image.
- Minimum Feature Size slider
This allows the removal of any image feature size up to the value selected.
The slider has a range selection of 0-63 pixels.
Picture/Photo vectorization added to Scan2CAD [Pro version only]
Picture/Photo vectorization is used for raster images containing solid regions of color and will vectorize the whole image unless specified otherwise – (see 1-3 below).
This method converts all color elements on the raster image to vectors unless specified otherwise – (see 3. below).
Any identifiable text on the image will NOT be considered for conversion to editable vector text.
Raster images should be Segmented before using Picture/Photo vectorization.
Vectorizing part of the image
- If you only want to vectorize a partial area of the image, choose the part you want to vectorize by windowing it or zooming into it, then follow the steps below.
- Templates can be set before using Picture/Photo to selectively vectorize only those areas of the image required for vectorization.
- Either Pick Color or Separation Colors can be set before using Picture/Photo to selectively vectorize only those colors required for vectorization
If required, 3 above can be combined with ether 1 or 2 above.
The Picture/Photo dialogue tool
- Picture/Photo type should have been previously set using the Type > Picture/Photo Menu.
- Click VEC , press the F7 key or select Run Menu > Vectorization.
- You should now be presented with the Picture/Photo Vectorization dialog.
- In the Preview Window, if the image is large, zoom into the image so that you will be able to clearly see the effects of the vectorization using the following slider and settings options.
- Vectors Definition slider
This slider affects the degree to which the vectors exactingly follow the color edges of the image.If the slider is set to extreme ‘High’ (0) then the vectorization will follow every pixel edge. This is generally not required. The initial level of (5) will be suitable as a start point and the user can move the slider up and down to see the results in the Preview Window. Moving the slider to ‘Low’ will relax the degree to which the vectors follow the color edges.
- Polygon Profile settings
Options within this heading allow the user to set the nature of vectors describing the boundaries of color areas of the image.
Angular – Boundary vectors will be comprised of a series of straight lines.
Angular with Curves – Boundary vectors will be comprised of a series of both straight lines and curves(formed from beziers) as best suits the image edges.
Identify Circles – Where an image area can be described as circular then the vector boundary will be formed from a circle.
Bias Right Angles – Where the color area is describing a drawing part with a right angle, the apex pixel(s) of the right angle might not exist. If this option is selected Scan2CAD will attempt to identify these conditions and adjust the vectorization accordingly. If the image does not generally have a number of required right angles then do not set this option.
- Polygon Type settings
Options within this heading allow the user to set the type of the polygon formed from the edge vectors. Polygon shapes(profiles) will reflect the settings made in Polygon Profile.
Solid – Polygons are solid. The edge and fill color is the same as the pixels outlined.
Non Solid – Polygons are not solid but empty(no fill color).The edge color is the same as the pixels outlined.
Edge – Edge indicates that Polygons are not required. Each unique edge between different areas of raster color will be represented by either Polyline, Bezier or Circle vectors. The vector color will be the same as either of the adjacent pixel areas.
H. Display settings
Options within this heading allow the user to set the display characteristics of the image in the Preview Window.
Highlight Polygons – The edge color of polygons is displayed as black. This is useful in identifying polygons especially where you may have adjacent polygons of a similar color or the polygons are being displayed on top of the raster image. This is only a display feature – the original edge color is retained.
Show Raster – The segmented raster image in shown in the Preview Window with vectors displayed on top. When used with the Non Solid and Edge Polygon types the user can see how exactingly the vectors follow the image color edges. This option is not of value when used with the Solid Polygon type as the solid vectors displayed will fully cover the raster image.
Show Raster Faded – The raster image will be displayed ‘faded’ to give a measure of contrast between the colored vectors and the raster image.