| Images | |
| Image | The image type used in smartreader |
| Variables | |
| channel | Vector of the channels that compose the image |
| n_channels | Number of channels in the image |
| w | Width of the image |
| h | Height of the image |
| ROI | Region of interest on the image. |
| Functions | |
| image | Creates a new image |
| imageGrayGet | Gets the value at position i, j from a gray image.If the parameters are invalid returns 0. |
| imageGraySet | Sets the value at position i, j from a gray image |
| imageGet | Gets the value at position i, j from a the n-th channel of the image. |
| imageSet | Sets the value at position i, j in the n-th channel of an image |
| imageClone | Returns a clone of img. |
| imageReadPGM | Reads a PGM image from path. |
| imageSavePGM | Save an image to the file system |
| imageDelete | Delete the image |
| imageDrawRect | Draws all the Rects in a IplImage using color. |
The image type used in smartreader
| Variables | |
| channel | Vector of the channels that compose the image |
| n_channels | Number of channels in the image |
| w | Width of the image |
| h | Height of the image |
| ROI | Region of interest on the image. |
| Functions | |
| image | Creates a new image |
| imageGrayGet | Gets the value at position i, j from a gray image.If the parameters are invalid returns 0. |
| imageGraySet | Sets the value at position i, j from a gray image |
| imageGet | Gets the value at position i, j from a the n-th channel of the image. |
| imageSet | Sets the value at position i, j in the n-th channel of an image |
| imageClone | Returns a clone of img. |
| imageReadPGM | Reads a PGM image from path. |
| imageSavePGM | Save an image to the file system |
| imageDelete | Delete the image |
| imageDrawRect | Draws all the Rects in a IplImage using color. |
int imageGrayGet( Image * img, int i, int j )
Gets the value at position i, j from a gray image.If the parameters are invalid returns 0.
| img | the image to get the value from |
| i | row |
| j | column Returns: The value of the i, j pixel See Also: Image |
void imageGraySet( Image * img, int i, int j, int value )
Sets the value at position i, j from a gray image
| img | the image to set the value from |
| i | row |
| j | column |
| value | new value See Also: Image |
int imageGet( Image * img, int i, int j, int n )
Gets the value at position i, j from a the n-th channel of the image. If the parameters are invalid returns 0
| img | the image to get the value from |
| i | row |
| j | column |
| n | channel to be used Returns: The value of the i, j pixel ot the n-th channel See Also: Image |
void imageSet( Image * img, int i, int j, int n, int value )
Sets the value at position i, j in the n-th channel of an image
| img | the image to set the value |
| i | row |
| j | column |
| n | channel to be used |
| value | new value See Also: Image |
Image *imageClone( Image * img )
Returns a clone of img. This functions uses ROI.
| img | image to be cloned |
Copy of img See Also: Image
Vector of the channels that compose the image
Matrix **channel
Number of channels in the image
int n_channels
Width of the image
int w
Height of the image
int h
Region of interest on the image.
Rect *ROI
Creates a new image
Image *image( int width, int height, int n_channels )
Gets the value at position i, j from a gray image.If the parameters are invalid returns 0.
int imageGrayGet( Image * img, int i, int j )
Sets the value at position i, j from a gray image
void imageGraySet( Image * img, int i, int j, int value )
Gets the value at position i, j from a the n-th channel of the image.
int imageGet( Image * img, int i, int j, int n )
Sets the value at position i, j in the n-th channel of an image
void imageSet( Image * img, int i, int j, int n, int value )
Returns a clone of img.
Image *imageClone( Image * img )
Reads a PGM image from path.
Image *imageReadPGM( char * path )
Save an image to the file system
void imageSavePGM( Image * img, char * path )
Delete the image
void imageDelete( Image * img )
Draws all the Rects in a IplImage using color.
void imageDrawRect( Image * img, Rect * r, Color color, int filled )