gen_image_surface_second_order
— Create a curved gray surface with second order polynomial.
gen_image_surface_second_order( : ImageSurface : Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height : )
The operator gen_image_surface_second_order
creates a curved
gray value surface according to the following equation:
The size of the image is determined by Width
and Height
.
The parameters Row
and Column
define the reference point
of the created gray surface.
The gray values are of the type Type
(see gen_image_const
for a detailed description of the pixel types).
Gray values outside the valid area are clipped.
ImageSurface
(output_object) image →
object (byte / uint2 / real)
Created image with new image matrix.
Type
(input_control) string →
(string)
Pixel type.
Default value: 'byte'
List of values: 'byte' , 'real' , 'uint2'
Alpha
(input_control) number →
(real)
Second order coefficient in vertical direction.
Default value: 1.0
Suggested values: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
Minimum increment: 0.000001
Recommended increment: -0.005
Beta
(input_control) number →
(real)
Second order coefficient in horizontal direction.
Default value: 1.0
Suggested values: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
Minimum increment: 0.000001
Recommended increment: -0.005
Gamma
(input_control) number →
(real)
Mixed second order coefficient.
Default value: 1.0
Suggested values: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
Minimum increment: 0.000001
Recommended increment: -0.005
Delta
(input_control) number →
(real)
First order coefficient in vertical direction.
Default value: 1.0
Suggested values: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
Minimum increment: 0.000001
Recommended increment: -0.005
Epsilon
(input_control) number →
(real)
First order coefficient in horizontal direction.
Default value: 1.0
Suggested values: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
Minimum increment: 0.000001
Recommended increment: -0.005
Zeta
(input_control) number →
(real)
Zero order coefficient.
Default value: 1.0
Suggested values: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
Minimum increment: 0.000001
Recommended increment: -0.005
Row
(input_control) number →
(real)
Row coordinate of the reference point of the surface.
Default value: 256.0
Suggested values: 0.0, 128.0, 256.0, 512.0
Minimum increment: 0.000001
Recommended increment: -0.005
Column
(input_control) number →
(real)
Column coordinate of the reference point of the surface.
Default value: 256.0
Suggested values: 0.0, 128.0, 256.0, 512.0
Minimum increment: 0.000001
Recommended increment: -0.005
Width
(input_control) extent.x →
(integer)
Width of image.
Default value: 512
Suggested values: 128, 256, 512, 1024
Typical range of values: 1
≤
Width
≤
512
(lin)
Minimum increment: 1
Recommended increment: 10
Restriction: Width >= 1
Height
(input_control) extent.y →
(integer)
Height of image.
Default value: 512
Suggested values: 128, 256, 512, 1024
Typical range of values: 1
≤
Height
≤
512
(lin)
Minimum increment: 1
Recommended increment: 10
Restriction: Height >= 1
* Adjust an inhomogeneous illumination * using gen_image_surface_second_order read_image (Image, 'cap_illumination/cap_illumination_01') get_image_size (Image, Width, Height) gen_circle (Circle, 495, 630, 350.5) difference (Image, Circle, RegionDifference) fit_surface_second_order (RegionDifference, Image, 'regression', 5, 2, \ Alpha, Beta, Gamma, Delta, Epsilon, Zeta) area_center (RegionDifference, Area, Row, Column) gen_image_surface_second_order (ImageSurface, 'byte', Alpha, Beta, \ Gamma, Delta, Epsilon, Zeta, Row, Column, \ Width, Height) sub_image (Image, ImageSurface, ImageSub, 1, 128)
If the parameter values are correct gen_image_surface_second_order
returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.
gen_image_gray_ramp
,
gen_image_surface_first_order
,
gen_image_const
Foundation