转换当前的图像类型为指定(由Image Type指定)的图像类型。如果指定了查找表,由转换图像函数使用查找表转换图像。如果转换一个16位图像到8位图像,该函数执行转换的方法为:将16位的像素值右移指定数量的移位操作(16位到8位需要右移8位),然后截取剩下的8位值。
Image Src Type 原始图像类型 | | |
U8
| | If you provide a lookup table, the destination pixel will have the lookup value of the source pixel. If you do not provide a lookup table, the VI copies the source value to the destination unmodified. 如果提供了一个查找表,目标像素将赋值源像素的查找值。如果不提供查找表,该函数将源像素值不修改复制到目标像素。 |
|
RGBU32
| Each color component of the destination is set to the source value. If the source value is greater than 255, the VI sets each color component to 255. If the source value is less than 0, the VI sets each color component to 0. If the source image has a specified bit depth, the VI uses the bit depth when performing this conversion. 目标的每个颜色分量设置为源值。如果源值大于255,则该函数将每个颜色分量设置为255。如果源值小于0,则将每个颜色分量设置为0。如果源图像具有指定的位深度,该函数使用指定位深度在执行此转换时。 |
|
HSLU32
| The VI sets the luminance component of the destination to the source value. If the source value is greater than 255, the VI sets the luminance to 255. If the source value is less than 0, the VI sets the luminance to 0. The VI sets hue and saturation component of the destination to 0. If the source image has a specified bit depth, the VI uses the bit depth when performing this conversion. 函数将目标的亮度分量设置为源值。如果源值大于255,则函数将亮度设置为255。如果源值小于0,则函数将亮度设置为0。函数将目标的色调和饱和度分量设置为0。如果源图像具有指定的位深度,该函数使用指定位深度在执行此转换时。 |
|
CSG
| The VI sets the real component of the destination to the source value. The VI sets the imaginary component of the destination to 0. 函数设置目标的实部分量为源值。函数设置目标的虚部为0。 |
U16
I16
|
U8
| The VI shifts the source value to the right by the given shift value (divides each source pixel value by 2^shift ) and stores the value in the destination. If the shifted value is greater than 255, the VI sets the destination value to 255. If the shift value is zero, the VI uses the specified bit depth of the source image. 函数将源值右移指定的位数N(右移N位即为除以2的N次方,N为移动位数),并将其存储该移位后的值在目标里。如果右移后的值大于255,则函数将目标值设置为255。如果移位值为零(N为0),则函数使用源图像的指定位深度。 |
|
RGBU64
| Each color component of the destination is set to the source value. If the source value is greater than 65535, the VI sets each color component to 65535. If the source value is less than 0, the VI sets each color component to 0. 目标的每个颜色分量设置为源值。如果源值大于65535,则该函数将每个颜色分量设置为65535。如果源值小于0,则将每个颜色分量设置为0。 |
RGBU64
|
U8
| The VI shifts the source value to the 8-bit range using the specified bit depth of the source image. Then the VI sets the destination value to the average of the three color components of the source. 该函数使用指定位深度源图像将其源值转换为8位范围(应该是每个颜色分量都使用右移,NI没有介绍)。然后将目标值设置为转换后源值的三个颜色分量的平均值。 |
RGBU64
| | The VI sets the destination value to the average of the three color components of the source. If the average of the source color components is out of the range of the destination, the VI coerces the average to the range. 函数将目标值设置为源值的三个颜色分量的平均值的。如果源值的颜色分量平均值超出目标范围,函数强制转换平均值到范围内。 |
RGBU64
|
RGBU32
| The VI shifts the source value to the 8-bit range using the specified bit depth of the source image. Then the VI sets each color component in the destination value to the corresponding component in the source value. 函数使用指定位深度的源图像将其源值转换为8位范围。然后,将目标值中的每个颜色分量设置为源值中的相应分量。 |
RGBU64
|
HSLU32
| The VI shifts the source value to the 8-bit range using the specified bit depth of the source image. Then the VI converts each pixel from the RGB color space to the HSL color space. 函数使用指定位深度的源图像将其源值转换为8位范围。然后函数转换每个像素的RGB颜色空间到HSL颜色空间。 |
U16
I16
|
SGL
| If you provide a lookup table, the destination pixel will have the lookup value of the source pixel. If you do not provide a lookup table, the VI copies the source value to the destination unmodified. 如果提供了一个查找表,目标像素将由源像素的查找值赋值。如果不提供查找表,该函数将未修改的源值复制到目标中。 |
SGL
| | The VI sets the destination value to the source value. If the source value is out of the range of the destination, the VI coerces the source to the range. 函数将目标值设置为源值。如果源值超出目标的范围,函数强制转换到范围内。 |
RGBU32
| | The VI sets the destination value to the average of the three color components of the source. 函数将目标值设置为源值三个颜色分量的平均值。 |
RGBU32
|
HSLU32
| The VI converts each pixel from the RGB color space to the HSL color space. 函数转换每个像素的RGB颜色空间到HSL颜色空间。 |
RGBU32
RGBU64
|
CSG
| The VI sets the real portion of the destination value to the average of the three color components of the source, and it sets the imaginary portion of the destination to 0. 函数将目标值的实部设置为源值三个颜色分量的平均值,并将目标值的虚部设置为0。 |
HSLU32
| | The VI sets the destination value to the luminance component of the source value. 函数设置目标值为源值的亮度分量。 |
HSLU332
|
RGBU32
RGBU64
| The VI converts each pixel from the HSL color space to the RGB color space. 函数转换每个像素的HSL颜色空间为RGB颜色空间。 |
HSLU32
|
CSG
| The VI sets the real portion of the destination value to the value of the luminance component of the source, and it sets the imaginary portion of the destination to 0. If the source value is out of the range of the destination, the VI coerces the source to the range. 函数将目标值的实部设置为源值亮度分量的值,将目标的虚部设置为0。如果源值超出目标的范围,范围强制转换到范围内。 |
CSG
| | The VI sets the destination value to the magnitude of the source value. If the source value is out of the range of the destination, the VI coerces the source to the range. 函数将目标值设置为源值的模(复数的向量长度、大小或绝对值)。如果源值超出目标的范围,函数强制转换到范围内。 |
CSG
|
RGBU32
RGBU64
| The VI sets each color component of the destination value to the magnitude of the source value. If the source value is out of the range of the destination, the VI coerces the source to the range. 函数设置目标的每个颜色分量为源值的模。如果源值超出目标的范围,函数强制转换到范围内。 |
CSG
|
HSLU32
| The VI sets the luminance component of the destination value to the magnitude of the source value, and it sets the hue and saturation components to 0. 函数设置目标的亮度分量为源值的模,并且设置色调和饱和度分量为0。 |
CSG
|
I16
| The VI sets the destination value to the source value. If the source value is out of the range of the destination, the VI coerces the source to the range. 函数设置目标值为源值。如果源值超出目标值范围,函数强制转换源值到范围内。 |
CSG
|
U16
| The VI sets the destination value to the source value. If the source value is out of the range of the destination, the VI coerces the source to the range. 函数设置目标值为源值。如果源值超出目标值范围,函数强制转换源值到范围内。 |