paint_graypaint_grayPaintGrayPaintGraypaint_gray (算子名称)
名称
paint_graypaint_grayPaintGrayPaintGraypaint_gray — Paint the gray values of an image into another image.
参数签名
描述
paint_graypaint_grayPaintGrayPaintGrayPaintGraypaint_gray paints the gray values of the image given in
ImageSourceImageSourceImageSourceImageSourceimageSourceimage_source into the image in ImageDestinationImageDestinationImageDestinationImageDestinationimageDestinationimage_destination and returns
the resulting image in MixedImageMixedImageMixedImageMixedImagemixedImagemixed_image. Only the gray values of the
domain of ImageSourceImageSourceImageSourceImageSourceimageSourceimage_source are copied (see reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain).
As an alternative to paint_graypaint_grayPaintGrayPaintGrayPaintGraypaint_gray, you can use 该算子
overpaint_grayoverpaint_grayOverpaintGrayOverpaintGrayOverpaintGrayoverpaint_gray, which directly paints the gray values into
ImageDestinationImageDestinationImageDestinationImageDestinationimageDestinationimage_destination.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
ImageSourceImageSourceImageSourceImageSourceimageSourceimage_source (input_object) (multichannel-)image → objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / vector_field)
Input image containing the desired gray values.
ImageDestinationImageDestinationImageDestinationImageDestinationimageDestinationimage_destination (input_object) (multichannel-)image → objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / vector_field)
Input image to be painted over.
MixedImageMixedImageMixedImageMixedImagemixedImagemixed_image (output_object) image → objectHImageHObjectHImageHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / vector_field)
Result image.
例程 (HDevelop)
* Copy a circular part of the image 'monkey' into the image 'fabrik':
read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
read_image(Image2,'fabrik')
* Copy a part of the image 'monkey' into 'fabrik'
paint_gray(Mask,Image2,MixedImage)
例程 (C)
/* Copy a circular part of the image 'monkey' into the image 'fabrik': */
read_image(&Image,"monkey");
gen_circle(&Circle,200.0,200.0,150.0);
reduce_domain(Image,Circle,&Mask);
read_image(&Image,"fabrik");
/* Copy a part of the image 'monkey' into 'fabrik' */
paint_gray(Mask,Image2,&MixedImage);
例程 (HDevelop)
* Copy a circular part of the image 'monkey' into the image 'fabrik':
read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
read_image(Image2,'fabrik')
* Copy a part of the image 'monkey' into 'fabrik'
paint_gray(Mask,Image2,MixedImage)
例程 (HDevelop)
* Copy a circular part of the image 'monkey' into the image 'fabrik':
read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
read_image(Image2,'fabrik')
* Copy a part of the image 'monkey' into 'fabrik'
paint_gray(Mask,Image2,MixedImage)
例程 (HDevelop)
* Copy a circular part of the image 'monkey' into the image 'fabrik':
read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
read_image(Image2,'fabrik')
* Copy a part of the image 'monkey' into 'fabrik'
paint_gray(Mask,Image2,MixedImage)
结果
paint_graypaint_grayPaintGrayPaintGrayPaintGraypaint_gray returns 2 (
H_MSG_TRUE)
if all parameters are
correct. 如有必要,将引发异常。
可能的前置算子
read_imageread_imageReadImageReadImageReadImageread_image,
gen_image_constgen_image_constGenImageConstGenImageConstGenImageConstgen_image_const,
gen_image_protogen_image_protoGenImageProtoGenImageProtoGenImageProtogen_image_proto
可替代算子
get_image_pointer1get_image_pointer1GetImagePointer1GetImagePointer1GetImagePointer1get_image_pointer1,
set_grayvalset_grayvalSetGrayvalSetGrayvalSetGrayvalset_grayval,
copy_imagecopy_imageCopyImageCopyImageCopyImagecopy_image,
overpaint_grayoverpaint_grayOverpaintGrayOverpaintGrayOverpaintGrayoverpaint_gray
参考其它
paint_regionpaint_regionPaintRegionPaintRegionPaintRegionpaint_region,
overpaint_regionoverpaint_regionOverpaintRegionOverpaintRegionOverpaintRegionoverpaint_region
模块
Foundation