CImage:Recip
The Recip method computes the reciprocal of the pixel values.
bResult = CImage:Recip() |
On success, this method returns true
On failure, this method returns false.
Usually, the image should have real type pixels before using this method. The pixel type can be tested and changed using IsReal and SetPixelType . See Pixel Types for more information.
The following script loads an image from the file sPath, computes the reciprocal, and saves the result back to the file:
|
-- create a new CImage |
|
-- load the image from a file named sPath |
|
-- perform the operation |
|
|
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.