interpolate_scattered_data_points_to_image T_interpolate_scattered_data_points_to_image InterpolateScatteredDataPointsToImage InterpolateScatteredDataPointsToImage interpolate_scattered_data_points_to_image (Operator)
Name
interpolate_scattered_data_points_to_image T_interpolate_scattered_data_points_to_image InterpolateScatteredDataPointsToImage InterpolateScatteredDataPointsToImage interpolate_scattered_data_points_to_image
— Creating an image from the interpolation of scattered data.
Signature
def interpolate_scattered_data_points_to_image (method : str, rows : Sequence[Union[float, int]], columns : Sequence[Union[float, int]], values : Sequence[Union[float, int]], width : int, height : int, gen_param_name : Sequence[str], gen_param_value : Sequence[Union[str, int, float]]) -> HObject
Description
interpolate_scattered_data_points_to_image interpolate_scattered_data_points_to_image InterpolateScatteredDataPointsToImage InterpolateScatteredDataPointsToImage InterpolateScatteredDataPointsToImage interpolate_scattered_data_points_to_image
interpolates the
data points, given in Rows Rows Rows Rows rows rows
and Columns Columns Columns Columns columns columns
with the
corresponding measurement Values Values Values Values values values
,
and returns the result in ImageInterpolated ImageInterpolated ImageInterpolated ImageInterpolated imageInterpolated image_interpolated
. The size of the output
image is defined by its Width Width Width Width width width
and its Height Height Height Height height height
with the upper
left corner at (0,0). In order to interpolate at negative coordinates of
(Rows Rows Rows Rows rows rows
,Columns Columns Columns Columns columns columns
), simply translate all input points
accordingly. With the parameter Method Method Method Method method method
the interpolation algorithm
is specified. So far, only the
'thin_plate_splines' "thin_plate_splines" "thin_plate_splines" "thin_plate_splines" "thin_plate_splines" "thin_plate_splines" are supported. This method interpolates on
a global scale, which means that all points are regarded for the
interpolation, no matter how far away they are. The influence of far points
is correlated to
where r defines
the distance of two points. In comparison to
interpolate_scattered_data_image interpolate_scattered_data_image InterpolateScatteredDataImage InterpolateScatteredDataImage InterpolateScatteredDataImage interpolate_scattered_data_image
,
interpolate_scattered_data_points_to_image interpolate_scattered_data_points_to_image InterpolateScatteredDataPointsToImage InterpolateScatteredDataPointsToImage InterpolateScatteredDataPointsToImage interpolate_scattered_data_points_to_image
also supports subpixel
coordinates for Rows Rows Rows Rows rows rows
and Columns Columns Columns Columns columns columns
.
If the same data points (Rows Rows Rows Rows rows rows
,Columns Columns Columns Columns columns columns
,Values Values Values Values values values
)
are used for the interpolation of different output images in subsequent
steps, the operator create_scattered_data_interpolator create_scattered_data_interpolator CreateScatteredDataInterpolator CreateScatteredDataInterpolator CreateScatteredDataInterpolator create_scattered_data_interpolator
may be more
efficient.
The following parameters can be adjusted with GenParamName GenParamName GenParamName GenParamName genParamName gen_param_name
and
GenParamValue GenParamValue GenParamValue GenParamValue genParamValue gen_param_value
:
'alpha' "alpha" "alpha" "alpha" "alpha" "alpha" :
The parameter 'alpha' "alpha" "alpha" "alpha" "alpha" "alpha" is a smoothing factor.
For 'alpha' "alpha" "alpha" "alpha" "alpha" "alpha" = 0, all points passed in
(Rows Rows Rows Rows rows rows
,Columns Columns Columns Columns columns columns
,Values Values Values Values values values
)
are interpolated exactly. With 'alpha' "alpha" "alpha" "alpha" "alpha" "alpha" getting larger, the
interpolation smoothes the points in way that all interpolated points of
the result image ImageInterpolated ImageInterpolated ImageInterpolated ImageInterpolated imageInterpolated image_interpolated
lie on a common plane.
Default: 0 .
Restriction: 'alpha' "alpha" "alpha" "alpha" "alpha" "alpha" >= 0
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Processed without parallelization.
Parameters
ImageInterpolated ImageInterpolated ImageInterpolated ImageInterpolated imageInterpolated image_interpolated
(output_object) singlechannelimage →
object HImage HObject HImage Hobject * (real)
Interpolated image
Method Method Method Method method method
(input_control) string →
HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Method for the interpolation
Default:
'thin_plate_splines'
"thin_plate_splines"
"thin_plate_splines"
"thin_plate_splines"
"thin_plate_splines"
"thin_plate_splines"
Suggested values:
'thin_plate_splines' "thin_plate_splines" "thin_plate_splines" "thin_plate_splines" "thin_plate_splines" "thin_plate_splines"
Rows Rows Rows Rows rows rows
(input_control) point.y-array →
HTuple Sequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row coordinates of the points used for the interpolation
Columns Columns Columns Columns columns columns
(input_control) point.x-array →
HTuple Sequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column coordinates of the points
used for the interpolation
Values Values Values Values values values
(input_control) number-array →
HTuple Sequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Values of the points used for the interpolation
Width Width Width Width width width
(input_control) extent.x →
HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Width of the interpolated image
Default:
640
Height Height Height Height height height
(input_control) extent.y →
HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Height of the interpolated image
Default:
480
GenParamName GenParamName GenParamName GenParamName genParamName gen_param_name
(input_control) attribute.name-array →
HTuple Sequence[str] HTuple Htuple (string) (string ) (HString ) (char* )
Names of the generic parameters that can be adjusted
Default:
[]
Suggested values:
'alpha' "alpha" "alpha" "alpha" "alpha" "alpha"
GenParamValue GenParamValue GenParamValue GenParamValue genParamValue gen_param_value
(input_control) attribute.value-array →
HTuple Sequence[Union[str, int, float]] HTuple Htuple (real / string / integer) (double / string / int / long) (double / HString / Hlong) (double / char* / Hlong)
Values of the generic parameters that can be adjusted
Default:
[]
Suggested values:
0, 1.0, 10.0, 100.0
Result
If the parameters are valid, the operator
interpolate_scattered_data_points_to_image interpolate_scattered_data_points_to_image InterpolateScatteredDataPointsToImage InterpolateScatteredDataPointsToImage InterpolateScatteredDataPointsToImage interpolate_scattered_data_points_to_image
returns the value 2 (
H_MSG_TRUE )
.
If necessary, an exception is raised.
Alternatives
interpolate_scattered_data_image interpolate_scattered_data_image InterpolateScatteredDataImage InterpolateScatteredDataImage InterpolateScatteredDataImage interpolate_scattered_data_image
Module
Foundation