Container for image null value. More...
#include <rvc/image.h>
Container for image null value.
Mode for adjusting non-null cells having null value in ApplyMask.
| RVC::IMAGE::NULLVALUE::NULLVALUE | ( | ) | [inline] |
Default constructor.
| RVC::IMAGE::NULLVALUE::NULLVALUE | ( | CELLTYPE | CellType | ) | [inline, explicit] |
Construct for specified cell type and initialize to default.
| ERRVALUE RVC::IMAGE::NULLVALUE::ApplyMask | ( | void * | cellbuffer, | |
| const UINT8 * | maskbuffer, | |||
| INT32 | count, | |||
| CONFLICTADJUST | conflictadjust = CONFLICTADJUST_Auto | |||
| ) | const |
Apply mask to image cell buffer.
Cells with mask values of 0 will be set to the null value. Cells with non-zero mask values and having the null value will be adjusted as specified.
| cellbuffer | Cell buffer to apply mask to, must match cell type set for null value | |
| maskbuffer | Mask buffer containing 0 where null and non-0 where valid | |
| count | Number of cells to process |
| ERRVALUE RVC::IMAGE::NULLVALUE::ConvFromCellType | ( | double & | value | ) |
Convert value from cell type of *this to a double.
| value | Returns "packed" value if it has components |
| ERRVALUE RVC::IMAGE::NULLVALUE::ConvToCellType | ( | double | value, | |
| bool | setEachColorToValue = false | |||
| ) |
Convert value to cell type of *this.
| setEachColorToValue | True for setting the value for each color component (>=24bit cell types) |
| ERRVALUE RVC::IMAGE::NULLVALUE::ExtractMask | ( | const void * | cellbuffer, | |
| UINT8 * | maskbuffer, | |||
| INT32 | count | |||
| ) | const |
Extract mask from image cell buffer.
| cellbuffer | Cell buffer to extract mask from, must match cell type set | |
| maskbuffer | Mask buffer returned, will contain 0 where null and 255 where valid | |
| count | Number of cells to process |
| ERRVALUE RVC::IMAGE::NULLVALUE::GetValue | ( | DCOMPLEXMP & | value | ) | const |
Get null value as DCOMPLEXMP.
| ERRVALUE RVC::IMAGE::NULLVALUE::GetValue | ( | DCOMPLEXRI & | value | ) | const |
Get null value as DCOMPLEXRI.
| ERRVALUE RVC::IMAGE::NULLVALUE::GetValue | ( | FCOMPLEXMP & | value | ) | const |
Get null value as FCOMPLEXMP.
| ERRVALUE RVC::IMAGE::NULLVALUE::GetValue | ( | FCOMPLEXRI & | value | ) | const |
Get null value as FCOMPLEXRI.
| ERRVALUE RVC::IMAGE::NULLVALUE::GetValue | ( | double & | value | ) | const |
Get null value as double.
| ERRVALUE RVC::IMAGE::NULLVALUE::GetValue | ( | float & | value | ) | const |
Get null value as float.
Get null value as UINT32.
Get null value as INT32.
Get null value as UINT16, suitable for 16-bit RGB also.
Get null value as INT16.
Get null value as UINT8.
Get null value as INT8.
| void RVC::IMAGE::NULLVALUE::GetValue | ( | ANYRASTVALUE & | value | ) | const |
Obtain image null value as ANYRASTVALUE.
| void RVC::IMAGE::NULLVALUE::SetCellType | ( | CELLTYPE | CellType | ) | [inline] |
Set cell type for null value.
This will also set the null value to the default for the specified cell type.
| void RVC::IMAGE::NULLVALUE::SetDefault | ( | ) |
Set default null value for current cell type.
| ERRVALUE RVC::IMAGE::NULLVALUE::SetValue | ( | const DCOMPLEXMP & | value | ) |
Set value from DCOMPLEXMP.
| ERRVALUE RVC::IMAGE::NULLVALUE::SetValue | ( | const DCOMPLEXRI & | value | ) |
Set value from DCOMPLEXRI.
| ERRVALUE RVC::IMAGE::NULLVALUE::SetValue | ( | const FCOMPLEXMP & | value | ) |
Set value from FCOMPLEXMP.
| ERRVALUE RVC::IMAGE::NULLVALUE::SetValue | ( | const FCOMPLEXRI & | value | ) |
Set value from FCOMPLEXRI.
| ERRVALUE RVC::IMAGE::NULLVALUE::SetValue | ( | double | value | ) |
Set value from float/double.
| ERRVALUE RVC::IMAGE::NULLVALUE::SetValue | ( | unsigned int | value | ) |
Set value from unsigned integer.
| ERRVALUE RVC::IMAGE::NULLVALUE::SetValue | ( | int | value | ) |
Set value from signed integer.
| void RVC::IMAGE::NULLVALUE::SetValue | ( | CELLTYPE | CellType, | |
| const ANYRASTVALUE & | value | |||
| ) |
Set cell type and value from ANYRASTVALUE.
1.6.1