Functions | |
cpl_mask * | cpl_mask_new (int nx, int ny) |
Create a new cpl_mask. | |
void | cpl_mask_delete (cpl_mask *m) |
Delete a cpl_mask. | |
cpl_binary * | cpl_mask_get_data (const cpl_mask *in) |
Get a pointer to the data part of the mask. | |
int | cpl_mask_get_size_x (const cpl_mask *in) |
Get the x size of the mask. | |
int | cpl_mask_get_size_y (const cpl_mask *in) |
Get the y size of the mask. | |
int | cpl_mask_count (const cpl_mask *in) |
Get the number of occurences of CPL_BINARY_1. | |
cpl_error_code | cpl_mask_and (cpl_mask *in1, const cpl_mask *in2) |
Performs a logical AND between two masks. | |
cpl_error_code | cpl_mask_or (cpl_mask *in1, const cpl_mask *in2) |
Performs a logical OR between two masks. | |
cpl_error_code | cpl_mask_xor (cpl_mask *in1, const cpl_mask *in2) |
Performs a logical XOR between two masks. | |
cpl_error_code | cpl_mask_not (cpl_mask *in) |
Performs a logical NOT on a mask. | |
cpl_error_code | cpl_mask_closing (cpl_mask *in, const cpl_matrix *ker) |
Compute a morphological closing. | |
cpl_error_code | cpl_mask_opening (cpl_mask *in, const cpl_matrix *ker) |
Compute a morphological opening. | |
cpl_error_code | cpl_mask_erosion (cpl_mask *in, const cpl_matrix *ker) |
Compute a morphological erosion. | |
cpl_error_code | cpl_mask_dilation (cpl_mask *in, const cpl_matrix *ker) |
Compute a morphological dilation. | |
cpl_mask * | cpl_mask_new_from_rejected (const cpl_image *in, int *pbadpix, int *pfirstgood) |
Create a mask from an image bad pixels map. | |
cpl_mask * | cpl_mask_new_from_rejected_window (const cpl_image *in, int llx, int lly, int urx, int ury, int *pbadpix, int *pfirstgood) |
Create a mask from an image bad pixels map subwindow. | |
cpl_mask * | cpl_mask_threshold_image_create (const cpl_image *in, double lo_cut, double hi_cut) |
Select parts of an image with provided thresholds. | |
cpl_image * | cpl_image_labelise_mask_create (const cpl_mask *in, int *nbobjs) |
Labelise a mask to differentiate different objects. |
These masks are useful for object detection routines or bad pixel map handling. Morphological routines (erosion, dilation, closing and opening) and logical operations are provided.
#include "cpl_mask.h"
|
Labelise a mask to differentiate different objects.
Possible _cpl_error_code_ set in this function:
|
|
Performs a logical AND between two masks.
Possible _cpl_error_code_ set in this function:
|
|
Compute a morphological closing.
Possible _cpl_error_code_ set in this function:
|
|
Get the number of occurences of CPL_BINARY_1.
|
|
Delete a cpl_mask.
|
|
Compute a morphological dilation.
Possible _cpl_error_code_ set in this function:
|
|
Compute a morphological erosion.
Possible _cpl_error_code_ set in this function:
|
|
Get a pointer to the data part of the mask.
Possible _cpl_error_code_ set in this function:
|
|
Get the x size of the mask.
|
|
Get the y size of the mask.
|
|
Create a new cpl_mask.
Possible _cpl_error_code_ set in this function:
|
|
Create a mask from an image bad pixels map.
|
|
Create a mask from an image bad pixels map subwindow.
Possible _cpl_error_code_ set in this function:
|
|
Performs a logical NOT on a mask.
|
|
Compute a morphological opening.
Possible _cpl_error_code_ set in this function:
|
|
Performs a logical OR between two masks.
|
|
Select parts of an image with provided thresholds.
Possible _cpl_error_code_ set in this function:
|
|
Performs a logical XOR between two masks.
|