Conversion methods for 2D images.
More...
|
IUCORE_DLLAPI void | iu::convert (const ImageGpu_32f_C3 *src, ImageGpu_32f_C4 *dst) |
|
IUCORE_DLLAPI void | iu::convert (const ImageGpu_32f_C4 *src, ImageGpu_32f_C3 *dst) |
|
IUCORE_DLLAPI void | iu::convert_32f8u_C1 (const iu::ImageCpu_32f_C1 *src, iu::ImageCpu_8u_C1 *dst, float mul_constant=255.0f, float add_constant=0.0f) |
|
IUCORE_DLLAPI void | iu::convert_32f8u_C1 (const iu::ImageGpu_32f_C1 *src, iu::ImageGpu_8u_C1 *dst, float mul_constant=255.0f, unsigned char add_constant=0) |
|
IUCORE_DLLAPI void | iu::convert_32f8u_C4 (const iu::ImageGpu_32f_C4 *src, iu::ImageGpu_8u_C4 *dst, float mul_constant=255.0f, unsigned char add_constant=0) |
|
IUCORE_DLLAPI void | iu::convert_8u32f_C1 (const iu::ImageGpu_8u_C1 *src, iu::ImageGpu_32f_C1 *dst, float mul_constant=1/255.0f, float add_constant=0.0f) |
|
IUCORE_DLLAPI void | iu::convert_32u32f_C1 (const iu::ImageGpu_32u_C1 *src, iu::ImageGpu_32f_C1 *dst, float mul_constant, float add_constant=0.0f) |
|
IUCORE_DLLAPI void | iu::convert_32u32f_C1 (const iu::ImageCpu_32u_C1 *src, iu::ImageCpu_32f_C1 *dst, float mul_constant, float add_constant=0.0f) |
|
IUCORE_DLLAPI void | iu::convert_32s32f_C1_lin (iu::LinearDeviceMemory_32s_C1 *src, iu::LinearDeviceMemory_32f_C1 *dst) |
|
IUCORE_DLLAPI void | iu::convert_8u32f_C3C4 (const iu::ImageGpu_8u_C3 *src, iu::ImageGpu_32f_C4 *dst, float mul_constant=1/255.0f, float add_constant=0.0f) |
|
IUCORE_DLLAPI void | iu::convert_16u32f_C1 (const iu::ImageCpu_16u_C1 *src, iu::ImageCpu_32f_C1 *dst, float mul_constant, float add_constant) |
|
IUCORE_DLLAPI void | iu::convert_RgbHsv (const iu::ImageGpu_32f_C4 *src, iu::ImageGpu_32f_C4 *dst, bool normalize=false) |
|
IUCORE_DLLAPI void | iu::convert_HsvRgb (const iu::ImageGpu_32f_C4 *src, iu::ImageGpu_32f_C4 *dst, bool denormalize=false) |
|
IUCORE_DLLAPI void | iu::convert_RgbLab (const iu::ImageGpu_32f_C4 *src, iu::ImageGpu_32f_C4 *dst, bool isNormalized=true) |
|
IUCORE_DLLAPI void | iu::convert_LabRgb (const iu::ImageGpu_32f_C4 *src, iu::ImageGpu_32f_C4 *dst) |
|
Conversion methods for 2D images.
IUCORE_DLLAPI void iu::convert |
( |
const ImageGpu_32f_C3 * |
src, |
|
|
ImageGpu_32f_C4 * |
dst |
|
) |
| |
Converts an 32-bit 3-channel image to a 32-bit 4-channel image (adds alpha channel with value 1.0 everywhere).
- Parameters
-
src | 3-channel source image [device]. |
dst | 4-channel destination image [device] |
IUCORE_DLLAPI void iu::convert |
( |
const ImageGpu_32f_C4 * |
src, |
|
|
ImageGpu_32f_C3 * |
dst |
|
) |
| |
Converts an 32-bit 4-channel image to a 32-bit 3-channel image (simply neglects the alpha channel).
- Parameters
-
src | 4-channel source image [device]. |
dst | 3-channel destination image [device] |
Converts an 16-bit single-channel image to a 32-bit single-channel image.
- Parameters
-
src | 1-channel source image [host]. |
dst | 1-channel destination image [host]. |
mul_constant | The optional scale factor. |
add_constant | The optional delta, added to the scaled values. |
Converts an 32-bit single-channel image to a 8-bit single-channel image.
- Parameters
-
src | 1-channel source image [host]. |
dst | 1-channel destination image [host]. |
mul_constant | The optional scale factor. |
add_constant | The optional delta, added to the scaled values. |
Converts an 32-bit single-channel image to a 8-bit single-channel image.
- Parameters
-
src | 1-channel source image [device]. |
dst | 1-channel destination image [device]. |
mul_constant | The optional scale factor. |
add_constant | The optional delta, added to the scaled values. |
Converts an 32-bit 4-channel image to a 8-bit 4-channel image.
- Parameters
-
src | 4-channel source image [device]. |
dst | 4-channel destination image [device]. |
mul_constant | The optional scale factor. |
add_constant | The optional delta, added to the scaled values. |
Converts a 32-bit single-channel linear memory to a 32-bit single-channel linear memory. Inplace conversion is possible.
- Parameters
-
src | 1-channel src linear memory [device]. |
dst | 1-channel destination linear memory [device]. |
Converts a 32-bit single-channel uint image to a 32-bit single-channel float image.
- Parameters
-
src | 1-channel source image [device]. |
dst | 1-channel destination image [device]. |
mul_constant | The optional scale factor. |
add_constant | The optional delta, added to the scaled values. |
Converts a 32-bit single-channel uint image to a 32-bit single-channel float image.
- Parameters
-
src | 1-channel source image [host]. |
dst | 1-channel destination image [host]. |
mul_constant | The optional scale factor. |
add_constant | The optional delta, added to the scaled values. |
Converts an 8-bit single-channel image to a 32-bit single-channel image.
- Parameters
-
src | 1-channel source image [device]. |
dst | 1-channel destination image [device]. |
mul_constant | The optional scale factor. |
add_constant | The optional delta, added to the scaled values. |
Converts an 8-bit 3-channel image to a 32-bit 4-channel image.
- Parameters
-
src | 3-channel source image [device]. |
dst | 4-channel destination image [device]. |
mul_constant | The optional scale factor. |
add_constant | The optional delta, added to the scaled values. |
Converts a HSV image to an RGB image.
- Parameters
-
src | 4-channel source image [device]. |
dst | 4-channel destination image [device]. |
denormalize | Denormalizes all channels to [0, 1] |
Converts a CIELAB image to a RGB image assuming D65 (=6500K) white point.
- Parameters
-
src | 4-channel source image [device]. |
dst | 4-channel destination image [device]. |
Converts an RGB image to a HSV image.
- Parameters
-
src | 4-channel source image [device]. |
dst | 4-channel destination image [device]. |
normalize | Normalizes all channels to [0, 1] |
Converts a RGB image to a CIELAB image using D65 (=6500K) white point normalization.
- Parameters
-
src | 4-channel source image [device]. |
dst | 4-channel destination image [device]. |
isNormalized | flag indicating whether the values of src are normalized to [0, 1] or not. Not normalized images are assumed to have values in [0, 255]. |