Functions | |
| cpl_error_code | cpl_image_accept (cpl_image *im, int x, int y) |
| Set a pixel as good in an image. | |
| cpl_error_code | cpl_image_accept_all (cpl_image *im) |
| Set all pixels in the image as good. | |
| int | cpl_image_count_rejected (const cpl_image *im) |
| Count the number of bad pixels declared in an image. | |
| int | cpl_image_is_rejected (const cpl_image *im, int x, int y) |
| Test if a pixel is good or bad. | |
| cpl_error_code | cpl_image_reject (cpl_image *im, int x, int y) |
| Set a pixel as bad in an image. | |
| cpl_error_code | cpl_image_reject_from_mask (cpl_image *im, const cpl_mask *map) |
| Set the bad pixels in an image as defined in a mask. | |
The provided functions allow the user to set or reset the bad pixels in an image, or to get various informations on those bad pixels.
#include "cpl_image_bpm.h"
| cpl_error_code cpl_image_accept | ( | cpl_image * | im, | |
| int | x, | |||
| int | y | |||
| ) |
Set a pixel as good in an image.
| im | the input image | |
| x | the x pixel position in the image (first pixel is 1) | |
| y | the y pixel position in the image (first pixel is 1) |
| cpl_error_code cpl_image_accept_all | ( | cpl_image * | im | ) |
Set all pixels in the image as good.
| im | the input image |
| int cpl_image_count_rejected | ( | const cpl_image * | im | ) |
Count the number of bad pixels declared in an image.
| im | the input image |
| int cpl_image_is_rejected | ( | const cpl_image * | im, | |
| int | x, | |||
| int | y | |||
| ) |
Test if a pixel is good or bad.
| im | the input image | |
| x | the x pixel position in the image (first pixel is 1) | |
| y | the y pixel position in the image (first pixel is 1) |
| cpl_error_code cpl_image_reject | ( | cpl_image * | im, | |
| int | x, | |||
| int | y | |||
| ) |
Set a pixel as bad in an image.
| im | the input image | |
| x | the x pixel position in the image (first pixel is 1) | |
| y | the y pixel position in the image (first pixel is 1) |
| cpl_error_code cpl_image_reject_from_mask | ( | cpl_image * | im, | |
| const cpl_mask * | map | |||
| ) |
Set the bad pixels in an image as defined in a mask.
| im | the input image | |
| map | the mask defining the bad pixels |
Possible _cpl_error_code_ set in this function:
1.5.1