Name
overpaint_grayoverpaint_grayOverpaintGrayoverpaint_grayOverpaintGrayOverpaintGray — Überschreibt die Grauwerte eines Bildes.
overpaint_grayoverpaint_grayOverpaintGrayoverpaint_grayOverpaintGrayOverpaintGray zeichnet die Grauwerte des Bildes aus
ImageSourceImageSourceImageSourceImageSourceImageSourceimageSource in das Bild in ImageDestinationImageDestinationImageDestinationImageDestinationImageDestinationimageDestination
ein. Kopiert werden nur die Grauwerte aus dem Definitionsbereich
von ImageSourceImageSourceImageSourceImageSourceImageSourceimageSource (siehe reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain).
Als Alternative zu overpaint_grayoverpaint_grayOverpaintGrayoverpaint_grayOverpaintGrayOverpaintGray zeichnet der Operator
paint_graypaint_grayPaintGraypaint_grayPaintGrayPaintGray die Grauwerte nicht direkt in ImageDestinationImageDestinationImageDestinationImageDestinationImageDestinationimageDestination
ein, sondern gibt das Ergebnis in einem neu erzeugten Bild zurück.
overpaint_grayoverpaint_grayOverpaintGrayoverpaint_grayOverpaintGrayOverpaintGray verändert den Inhalt eines bereits bestehenden Bildes
(ImageDestinationImageDestinationImageDestinationImageDestinationImageDestinationimageDestination). Zudem können aber auch andere Bildobjekte
betroffen sein: Wenn man z.B. ImageDestinationImageDestinationImageDestinationImageDestinationImageDestinationimageDestination mit Hilfe von
copy_objcopy_objCopyObjcopy_objCopyObjCopyObj aus einem anderen Bildobjekt erzeugt hat (oder umgekehrt),
wird auch dessen Bildmatrix überschrieben. Deshalb sollte
overpaint_grayoverpaint_grayOverpaintGrayoverpaint_grayOverpaintGrayOverpaintGray nur zum Einzeichnen in neu erzeugte Bildobjekte
verwendet werden. Typische Operatoren hierfür sind z.B.
gen_image_constgen_image_constGenImageConstgen_image_constGenImageConstGenImageConst (erzeugt ein neues Bild mit angegebener Größe),
gen_image_protogen_image_protoGenImageProtogen_image_protoGenImageProtoGenImageProto (erzeugt ein Bild mit der Größe eines angegebenen
Prototyp-Bildes) oder copy_imagecopy_imageCopyImagecopy_imageCopyImageCopyImage (erzeugt ein Bild als Kopie eines
angegebenen Bildes).
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Dieser Operator modifiziert den Zustand des folgenden Eingabeparameters:
Der Wert dieses Parameters darf nicht über mehrere Threads verwendet werden.
Eingabebild, in das eingezeichnet werden soll.
Eingabebild, das die zusätzlichen Grauwerte liefert.
* Copy a circular part of the image 'monkey' into a new image (New1):
read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
* New image with black (0) background
gen_image_proto(Image,New1,0.0)
* Copy a part of the image 'monkey' into New1
overpaint_gray(New1,Mask)
/* Copy a circular part of the image 'monkey' into a new image (New1): */
read_image(&Image,"monkey");
gen_circle(&Circle,200.0,200.0,150.0);
reduce_domain(Image,Circle,&Mask);
/* New image with black (0) background */
gen_image_proto(Image,&New1,0.0);
/* Copy a part of the image 'monkey' into New1 */
overpaint_gray(New1,Mask);
* Copy a circular part of the image 'monkey' into a new image (New1):
read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
* New image with black (0) background
gen_image_proto(Image,New1,0.0)
* Copy a part of the image 'monkey' into New1
overpaint_gray(New1,Mask)
* Copy a circular part of the image 'monkey' into a new image (New1):
read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
* New image with black (0) background
gen_image_proto(Image,New1,0.0)
* Copy a part of the image 'monkey' into New1
overpaint_gray(New1,Mask)
* Copy a circular part of the image 'monkey' into a new image (New1):
read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
* New image with black (0) background
gen_image_proto(Image,New1,0.0)
* Copy a part of the image 'monkey' into New1
overpaint_gray(New1,Mask)
* Copy a circular part of the image 'monkey' into a new image (New1):
read_image(Image,'monkey')
gen_circle(Circle,200,200,150)
reduce_domain(Image,Circle,Mask)
* New image with black (0) background
gen_image_proto(Image,New1,0.0)
* Copy a part of the image 'monkey' into New1
overpaint_gray(New1,Mask)
Sind die Parameterwerte korrekt, liefert overpaint_grayoverpaint_grayOverpaintGrayoverpaint_grayOverpaintGrayOverpaintGray
den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung
durchgeführt.
read_imageread_imageReadImageread_imageReadImageReadImage,
gen_image_constgen_image_constGenImageConstgen_image_constGenImageConstGenImageConst,
gen_image_protogen_image_protoGenImageProtogen_image_protoGenImageProtoGenImageProto
get_image_pointer1get_image_pointer1GetImagePointer1get_image_pointer1GetImagePointer1GetImagePointer1,
paint_graypaint_grayPaintGraypaint_grayPaintGrayPaintGray,
set_grayvalset_grayvalSetGrayvalset_grayvalSetGrayvalSetGrayval,
copy_imagecopy_imageCopyImagecopy_imageCopyImageCopyImage
paint_regionpaint_regionPaintRegionpaint_regionPaintRegionPaintRegion,
overpaint_regionoverpaint_regionOverpaintRegionoverpaint_regionOverpaintRegionOverpaintRegion
Foundation