Skip to content

interpolate_scattered_data_points_to_imageInterpolateScatteredDataPointsToImageInterpolateScatteredDataPointsToImageinterpolate_scattered_data_points_to_imageT_interpolate_scattered_data_points_to_image🔗

Short description🔗

interpolate_scattered_data_points_to_imageInterpolateScatteredDataPointsToImageInterpolateScatteredDataPointsToImageinterpolate_scattered_data_points_to_imageT_interpolate_scattered_data_points_to_image — Creating an image from the interpolation of scattered data.

Signature🔗

interpolate_scattered_data_points_to_image( out image ImageInterpolated, string Method, point.y Rows, point.x Columns, number Values, extent.x Width, extent.y Height, attribute.name GenParamName, attribute.value GenParamValue )void InterpolateScatteredDataPointsToImage( HObject* ImageInterpolated, const HTuple& Method, const HTuple& Rows, const HTuple& Columns, const HTuple& Values, const HTuple& Width, const HTuple& Height, const HTuple& GenParamName, const HTuple& GenParamValue )static void HOperatorSet.InterpolateScatteredDataPointsToImage( out HObject imageInterpolated, HTuple method, HTuple rows, HTuple columns, HTuple values, HTuple width, HTuple height, HTuple genParamName, HTuple genParamValue )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

Herror T_interpolate_scattered_data_points_to_image( Hobject* ImageInterpolated, const Htuple Method, const Htuple Rows, const Htuple Columns, const Htuple Values, const Htuple Width, const Htuple Height, const Htuple GenParamName, const Htuple GenParamValue )

Description🔗

interpolate_scattered_data_points_to_imageInterpolateScatteredDataPointsToImage interpolates the data points, given in Rowsrowsrows and Columnscolumnscolumns with the corresponding measurement Valuesvaluesvalues, and returns the result in ImageInterpolatedimageInterpolatedimage_interpolated. The size of the output image is defined by its Widthwidthwidth and its Heightheightheight with the upper left corner at (0,0). In order to interpolate at negative coordinates of (Rowsrowsrows,Columnscolumnscolumns), simply translate all input points accordingly. With the parameter Methodmethodmethod the interpolation algorithm is specified. So far, only the '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 \(r^2 \cdot \log(r)\) where \(r\) defines the distance of two points. In comparison to interpolate_scattered_data_imageInterpolateScatteredDataImage, interpolate_scattered_data_points_to_imageInterpolateScatteredDataPointsToImage also supports subpixel coordinates for Rowsrowsrows and Columnscolumnscolumns. If the same data points (Rowsrowsrows,Columnscolumnscolumns,Valuesvaluesvalues) are used for the interpolation of different output images in subsequent steps, the operator create_scattered_data_interpolatorCreateScatteredDataInterpolator may be more efficient.

The following parameters can be adjusted with GenParamNamegenParamNamegen_param_name and GenParamValuegenParamValuegen_param_value:

Execution information🔗

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🔗

ImageInterpolatedimageInterpolatedimage_interpolated (output_object) singlechannelimage → object (real)HObject (real)HImage (real)HObject (real)Hobject * (real)

Interpolated image

Methodmethodmethod (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

Method for the interpolation

Default: 'thin_plate_splines'"thin_plate_splines"
Suggested values: 'thin_plate_splines'"thin_plate_splines"

Rowsrowsrows (input_control) point.y-array → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Row coordinates of the points used for the interpolation

Columnscolumnscolumns (input_control) point.x-array → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Column coordinates of the points used for the interpolation

Valuesvaluesvalues (input_control) number-array → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Values of the points used for the interpolation

Widthwidthwidth (input_control) extent.x → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Width of the interpolated image

Default: 640640

Heightheightheight (input_control) extent.y → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Height of the interpolated image

Default: 480480

GenParamNamegenParamNamegen_param_name (input_control) attribute.name-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

Names of the generic parameters that can be adjusted

Default: [][]
Suggested values: 'alpha'"alpha"

GenParamValuegenParamValuegen_param_value (input_control) attribute.value-array → (real / string / integer)HTuple (double / HString / Hlong)HTuple (double / string / int / long)Sequence[Union[str, int, float]]Htuple (double / char* / Hlong)

Values of the generic parameters that can be adjusted

Default: [][]
Suggested values: 0, 1.0, 10.0, 100.00, 1.0, 10.0, 100.0

Result🔗

If the parameters are valid, the operator interpolate_scattered_data_points_to_imageInterpolateScatteredDataPointsToImage returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Combinations with other operators🔗

Combinations

Alternatives

interpolate_scattered_data_imageInterpolateScatteredDataImage

Module🔗

Foundation