
Chapter
4
Reference Manual
IVC-2D
168
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
System
Save Image to Flash
This tool saves an image in an image bank into the flash memory. There are up to 9999
flash banks available for storage. The actual number of available banks is determined by
the size of the saved images.
Note
: If the selected flash bank already contains a stored image, this image will be repla-
ced by the new image without any warning.
The images can be saved in three different image formats:
Raw
Saves the raw data of the image without compression.
Compressed raw
Saves the raw data of the image with lossless compression.
Jpeg
Saves the image in a compressed jpeg format, which is a lossy
compression. The amount of compression is set with the
Quality fac-
tor
, where
100
means no compression.
The execution time of this tool depends on how much the image is
compressed, as described in the following table.
For IVC-3D, profiles cannot be saved in Jpeg format.
Note that the execution times can vary about several milliseconds, which can result in a
non-constant cycle time.
An example of the variation of execution time is listed in the following table:
Format
Time of execution (min and max execution times in ms)
IVC-2DM1111
IVC-2DM1121
(HiRes)
Raw
9.000 – 11.000
15.000 – 17.000
Compressed raw
9.000 – 10.000
15.000 – 17.000
Jpeg
(Quality factor
100
)
780 – 1.900
8.000 – 10.000
Jpeg
(Quality factor
50
)
185 – 500
1.000 – 1.500
Jpeg
(Quality factor
1
)
145 – 160
200 – 400
Note:
This tool may perform an automatic defragmentation of the flash disk if the amount
of dead space exceeds the specified threshold. Please refer to section
in the appendix for information on how to set this threshold. This will signifi-
cantly increase the execution time of the tool. Note also that this is only the case when the
camera is running, not when executing the tool with F5/F8. In the latter situation, an error
code will be returned indicating that it is time to defragment the flash.
Input Parameters
01 = Source bank
Image bank containing the image to be saved to flash.
02 = Flash bank
Number of the flash bank in which the image will be
stored. Valid numbers for flash banks are 0 – 9999.
03 = Format
Image format for the saved image:
Raw
Jpeg
Compressed raw
04 = Quality factor
When
Format
is set to
Jpeg
, the amount of compression
of the image. Valid values: 1–100.
100
Highest quality of the image (no jpeg compression)
1
Low image quality and short execution time (maxi-
mum jpeg compression).
Returned Values
None