Complement - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ImageTools

  

Complement

  

compute the complement of an image

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Complement( img, peak, opts )

Parameters

img

-

Image; the image

peak

-

(optional) realcons; maximum pixel value

opts

-

(optional) equation(s) of the form option = value; specify options for the Complement command

Options

• 

inplace = truefalse

  

Specifies whether the operation is performed in-place. This can be used to avoid allocating memory. The default is false.

• 

output = Image

  

Specifies a data structure into which the output is written. This can be used to avoid allocating memory. The size and number of layers must match that of the input. The dimensions of the output image are adjusted so that the row and column indices match the input. The default is NULL.

Description

• 

The Complement command computes the complement of img. The operation applies the transform peakpixel to each pixel in the image. It does not affect the alpha channel (fourth layer).

• 

The img parameter is the input image.

• 

The optional parameter peak specifies the peak value to use. The default is 1.

Examples

withImageTools:

img1Create100,200,r,cevalf0.5+0.5sin0.005+0.003rr0.5+0.5sin0.15c:

img2Complementimg1:

img3Complementimg1,0.5:

plt1PlotHistogramimg1,normalized,color=red:

plt2PlotHistogramimg2,normalized,color=green:

plt3PlotHistogramimg3,normalized,autorange,color=blue:

plotsdisplayplt1,plt2,plt3

Embedimg1,img2,img3

See Also

ImageTools

ImageTools[FitIntensity]

ImageTools[PlotHistogram]