Operators |
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:
Created image with new image matrix.
Pixel type.
Default value: 'byte'
List of values: 'byte' , 'real' , 'uint2'
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
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
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
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
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
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 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 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 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 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
Operators |