|
static int | ailiaFormatConvert (IntPtr dst, UInt32 dst_width, UInt32 dst_height, UInt32 dst_format, UInt32 dst_channel, UInt32 dst_range, IntPtr src, Int32 src_stride, UInt32 src_width, UInt32 src_height, UInt32 src_format) |
| Convert image format. More...
|
|
◆ ailiaFormatConvert()
static int ailia.AiliaFormat.ailiaFormatConvert |
( |
IntPtr |
dst, |
|
|
UInt32 |
dst_width, |
|
|
UInt32 |
dst_height, |
|
|
UInt32 |
dst_format, |
|
|
UInt32 |
dst_channel, |
|
|
UInt32 |
dst_range, |
|
|
IntPtr |
src, |
|
|
Int32 |
src_stride, |
|
|
UInt32 |
src_width, |
|
|
UInt32 |
src_height, |
|
|
UInt32 |
src_format |
|
) |
| |
Convert image format.
- Parameters
-
dst | Where to store the converted image (type-numeric-stride * height * must be larger than the number of channels (see explanation)) |
dst_width | Width of the converted image |
dst_height | Height of converted image |
dst_forma | Format of converted image (AILIA_NETWORK_IMAGE_FORMAT_*) |
dst_channel | Channel order of the converted image (AILIA_NETWORK_IMAGE_CHANNEL_*) |
dst_range | Range of the converted image (AILIA_NETWORK_IMAGE_RANGE_*) |
src | Destination of converted source image (32bpp) |
src_stride | Number of line bytes in the source image |
src_width | Width of the source image |
src_height | Height of the source image |
src_format | Format of the source image (AILIA_IMAGE_FORMAT_*) |
- Returns
- Returns AILIA_STATUS_SUCCESS if successful, otherwise returns an error code.
Change the image format, if dst_format is AILIA_NETWORK_IMAGE_FORMAT_BGR or AILIA_NETWORK_IMAGE_FORMAT_RGB if dst_format is AILIA_NETWORK_IMAGE_FORMAT_BGR or AILIA_NETWORK_IMAGE_FORMAT_RGB, the number of channels is 3, if dst_format is AILIA_NETWORK_IMAGE_FORMAT_GRAY the number of channels is 1.
◆ AILIA_IMAGE_FORMAT_BGRA
const Int32 ailia.AiliaFormat.AILIA_IMAGE_FORMAT_BGRA = (0x01) |
|
static |
◆ AILIA_IMAGE_FORMAT_BGRA_B2T
const Int32 ailia.AiliaFormat.AILIA_IMAGE_FORMAT_BGRA_B2T = (0x11) |
|
static |
BGRA order (Bottom to Top)
◆ AILIA_IMAGE_FORMAT_RGBA
const Int32 ailia.AiliaFormat.AILIA_IMAGE_FORMAT_RGBA = (0x00) |
|
static |
◆ AILIA_IMAGE_FORMAT_RGBA_B2T
const Int32 ailia.AiliaFormat.AILIA_IMAGE_FORMAT_RGBA_B2T = (0x10) |
|
static |
RGBA order (Bottom to Top)
◆ AILIA_NETWORK_IMAGE_CHANNEL_FIRST
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_CHANNEL_FIRST = (0) |
|
static |
◆ AILIA_NETWORK_IMAGE_CHANNEL_LAST
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_CHANNEL_LAST = (1) |
|
static |
◆ AILIA_NETWORK_IMAGE_FORMAT_BGR
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_FORMAT_BGR = (0) |
|
static |
◆ AILIA_NETWORK_IMAGE_FORMAT_GRAY
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_FORMAT_GRAY = (2) |
|
static |
◆ AILIA_NETWORK_IMAGE_FORMAT_GRAY_EQUALIZE
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_FORMAT_GRAY_EQUALIZE = (3) |
|
static |
Histogram Flattening Gray Scale (1ch)
◆ AILIA_NETWORK_IMAGE_FORMAT_RGB
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_FORMAT_RGB = (1) |
|
static |
◆ AILIA_NETWORK_IMAGE_RANGE_IMAGENET
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_RANGE_IMAGENET = (4) |
|
static |
ImageNet mean&std normalizatio
◆ AILIA_NETWORK_IMAGE_RANGE_SIGNED_FP32
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_RANGE_SIGNED_FP32 = (3) |
|
static |
◆ AILIA_NETWORK_IMAGE_RANGE_SIGNED_INT8
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_RANGE_SIGNED_INT8 = (1) |
|
static |
◆ AILIA_NETWORK_IMAGE_RANGE_UNSIGNED_FP32
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_RANGE_UNSIGNED_FP32 = (2) |
|
static |
◆ AILIA_NETWORK_IMAGE_RANGE_UNSIGNED_INT8
const Int32 ailia.AiliaFormat.AILIA_NETWORK_IMAGE_RANGE_UNSIGNED_INT8 = (0) |
|
static |
The documentation for this class was generated from the following file: