cnvimg | Convert an image into some other format |
-in <input> | source image |
-out <output> | destination image |
-gray | | convert source into a grayscale image |
-indc | | convert source into indexed color |
-true | convert source into a true color image |
This command attempts to convert some image into another format as well as possible.
crop | Crop an area out of an image |
-in <image> | source image |
-out <imgout> | destination image |
-x0 <x-coord> | the x-coordinate of the starting corner |
-y0 <y-coord> | the y-coordinate of the starting corner |
-w <w> | the width of the cropping |
-h <h> | the height of the cropping |
This command crops an area out of the image for later processing.
convmatrix | Convert a given image into matrix presentation |
-in <image> | image to convert |
-out <matrix> | resulting matrix |
[-sign] | if given, the image is thought to consist of signed numbers |
This command converts a given image into matrix presentation (see section 2.17.1 for further details).
Example (ex6.1):
NDA> loadimg i003.gif pict1 # Masking NDA> matrix mask.real [0, -1, 0; -1, 4, -1; 0, -1, 0] # Grayscale - pictures NDA> cnvimg -in pict1 -out pict -gray # Convert image to matrix NDA> convmatrix -in pict -out matrix ...