RawToImage
==========

Converts raw file to pgm image and creates corresponding annotation file. The size of border between between samples in the created image can be adjusted. The annotation is created in such way that it does not result in any unwanted displacement when ImageTransform is used to generate samples form such annotated image.

Use:

RawToImage.exe -raw inputRawFileName -img outputImageFileName -annot outputAnotationFileName -b borderSize -hs horizontalCount

-raw inputRawFileName 			The input file.
-img outputImageFileName 		The output image.
-annot outputAnotationFileName 		The output annotation.
-b borderSize 				The size of border between samples in pixels
-hs horizontalCount			The number of samples on horizontal line in the resulting image.

Example:

RawToImage.exe -raw digit0.raw -img digit0.pgm -annot digit0.txt -b 16 -hs 64
