Name
rgb3_to_grayrgb3_to_grayRgb3ToGrayRgb3ToGray — Transform an RGB image to a gray scale image.
rgb3_to_grayrgb3_to_grayRgb3ToGrayRgb3ToGrayRgb3ToGray transforms an RGB image into a gray scale
image. The three channels of the RGB image are passed as three
separate images. The image is transformed according to the
following formula:
gray = 0.299 * red + 0.587 * green + 0.114 * blue .
- Supports OpenCL compute devices.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
- Automatically parallelized on domain level.
Input image (red channel).
Input image (green channel).
Input image (blue channel).
* Transformation from rgb to gray
read_image(Image,'patras')
dev_display(Image)
decompose3(Image, ImageR, ImageG, ImageB)
rgb3_to_gray(ImageR,ImageG,ImageB,GrayImage)
dev_display(GrayImage)
/* Transformation from rgb to gray */
read_image(Image,"patras") ;
disp_color(Image,WindowHandle) ;
decompose3(Image,&Rimage,&Gimage,&Bimage) ;
rgb3_to_gray(Rimage,Gimage,Bimage,&GrayImage) ;
disp_image(GrayImage,WindowHandle);
* Transformation from rgb to gray
read_image(Image,'patras')
dev_display(Image)
decompose3(Image, ImageR, ImageG, ImageB)
rgb3_to_gray(ImageR,ImageG,ImageB,GrayImage)
dev_display(GrayImage)
* Transformation from rgb to gray
read_image(Image,'patras')
dev_display(Image)
decompose3(Image, ImageR, ImageG, ImageB)
rgb3_to_gray(ImageR,ImageG,ImageB,GrayImage)
dev_display(GrayImage)
* Transformation from rgb to gray
read_image(Image,'patras')
dev_display(Image)
decompose3(Image, ImageR, ImageG, ImageB)
rgb3_to_gray(ImageR,ImageG,ImageB,GrayImage)
dev_display(GrayImage)
decompose3decompose3Decompose3Decompose3Decompose3
rgb1_to_grayrgb1_to_grayRgb1ToGrayRgb1ToGrayRgb1ToGray,
trans_from_rgbtrans_from_rgbTransFromRgbTransFromRgbTransFromRgb
Foundation