ClassesClassesClassesClasses | | | | Operators

unproject_coordinatesunproject_coordinatesUnprojectCoordinatesunproject_coordinatesUnprojectCoordinatesUnprojectCoordinates (Operator)

Name

unproject_coordinatesunproject_coordinatesUnprojectCoordinatesunproject_coordinatesUnprojectCoordinatesUnprojectCoordinates — Calculates image coordinates for a point in a 3D plot window.

Signature

unproject_coordinates(Image : : WindowHandle, Row, Column : ImageRow, ImageColumn, Height)

Herror unproject_coordinates(const Hobject Image, const Hlong WindowHandle, double Row, double Column, Hlong* ImageRow, Hlong* ImageColumn, Hlong* Height)

Herror T_unproject_coordinates(const Hobject Image, const Htuple WindowHandle, const Htuple Row, const Htuple Column, Htuple* ImageRow, Htuple* ImageColumn, Htuple* Height)

Herror unproject_coordinates(Hobject Image, const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column, Hlong* ImageRow, Hlong* ImageColumn, Hlong* Height)

Hlong HWindow::UnprojectCoordinates(const HImage& Image, const HTuple& Row, const HTuple& Column, HTuple* ImageColumn, HTuple* Height) const

void UnprojectCoordinates(const HObject& Image, const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column, HTuple* ImageRow, HTuple* ImageColumn, HTuple* Height)

void HImage::UnprojectCoordinates(const HWindow& WindowHandle, const HTuple& Row, const HTuple& Column, Hlong* ImageRow, Hlong* ImageColumn, HTuple* Height) const

void HImage::UnprojectCoordinates(const HWindow& WindowHandle, double Row, double Column, Hlong* ImageRow, Hlong* ImageColumn, Hlong* Height) const

void HWindow::UnprojectCoordinates(const HImage& Image, const HTuple& Row, const HTuple& Column, Hlong* ImageRow, Hlong* ImageColumn, HTuple* Height) const

void HWindow::UnprojectCoordinates(const HImage& Image, double Row, double Column, Hlong* ImageRow, Hlong* ImageColumn, Hlong* Height) const

void HOperatorSetX.UnprojectCoordinates(
[in] IHUntypedObjectX* Image, [in] VARIANT WindowHandle, [in] VARIANT Row, [in] VARIANT Column, [out] VARIANT* ImageRow, [out] VARIANT* ImageColumn, [out] VARIANT* Height)

Hlong HImageX.UnprojectCoordinates(
[in] IHWindowX* WindowHandle, [in] VARIANT Row, [in] VARIANT Column, [out] Hlong* ImageColumn, [out] VARIANT* Height)

Hlong HWindowX.UnprojectCoordinates(
[in] IHImageX* Image, [in] VARIANT Row, [in] VARIANT Column, [out] Hlong* ImageColumn, [out] VARIANT* Height)

static void HOperatorSet.UnprojectCoordinates(HObject image, HTuple windowHandle, HTuple row, HTuple column, out HTuple imageRow, out HTuple imageColumn, out HTuple height)

void HImage.UnprojectCoordinates(HWindow windowHandle, HTuple row, HTuple column, out int imageRow, out int imageColumn, out HTuple height)

void HImage.UnprojectCoordinates(HWindow windowHandle, double row, double column, out int imageRow, out int imageColumn, out int height)

void HWindow.UnprojectCoordinates(HImage image, HTuple row, HTuple column, out int imageRow, out int imageColumn, out HTuple height)

void HWindow.UnprojectCoordinates(HImage image, double row, double column, out int imageRow, out int imageColumn, out int height)

Description

If ImageImageImageImageImageimage is displayed in WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle using a 3D plot (i.e., '3d_plot'"3d_plot""3d_plot""3d_plot""3d_plot""3d_plot" was set using set_paintset_paintSetPaintset_paintSetPaintSetPaint), unproject_coordinatesunproject_coordinatesUnprojectCoordinatesunproject_coordinatesUnprojectCoordinatesUnprojectCoordinates calculates the image coordinates ImageRowImageRowImageRowImageRowImageRowimageRow, ImageColumnImageColumnImageColumnImageColumnImageColumnimageColumn, and the HeightHeightHeightHeightHeightheight for a given point RowRowRowRowRowrow,ColumnColumnColumnColumnColumncolumn in window coordinates. The window coordinates RowRowRowRowRowrow, ColumnColumnColumnColumnColumncolumn must be provided in respect to the current image part. As a consequence, this coordinates are subpixel coordinates. Given the current image part (row1,column1,row2, column2), the upper left corner corresponds to the coordinates (row1 - 0.5, col1 - 0.5). Accordingly, the bottom right corner corresponds to the coordinates (row2 - 0.5, col2 - 0.5). Use get_mposition_sub_pixget_mposition_sub_pixGetMpositionSubPixget_mposition_sub_pixGetMpositionSubPixGetMpositionSubPix or get_mbutton_sub_pixget_mbutton_sub_pixGetMbuttonSubPixget_mbutton_sub_pixGetMbuttonSubPixGetMbuttonSubPix to obtain these coordinates directly.

One of the window parameters 'save_depth_buffer'"save_depth_buffer""save_depth_buffer""save_depth_buffer""save_depth_buffer""save_depth_buffer" or 'interactive_plot'"interactive_plot""interactive_plot""interactive_plot""interactive_plot""interactive_plot" must be set to 'true'"true""true""true""true""true" using set_window_paramset_window_paramSetWindowParamset_window_paramSetWindowParamSetWindowParam. Otherwise, unproject_coordinatesunproject_coordinatesUnprojectCoordinatesunproject_coordinatesUnprojectCoordinatesUnprojectCoordinates cannot be used.

Parallelization

Parameters

ImageImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHImageHImageXHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / vector_field)

Displayed image.

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window handle.

RowRowRowRowRowrow (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Row coordinate in the window.

ColumnColumnColumnColumnColumncolumn (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Column coordinate in the window.

ImageRowImageRowImageRowImageRowImageRowimageRow (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row coordinate in the image.

ImageColumnImageColumnImageColumnImageColumnImageColumnimageColumn (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Column coordinate in the image.

HeightHeightHeightHeightHeightheight (output_control)  real HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Height value.

Possible Predecessors

get_mbutton_sub_pixget_mbutton_sub_pixGetMbuttonSubPixget_mbutton_sub_pixGetMbuttonSubPixGetMbuttonSubPix, get_mposition_sub_pixget_mposition_sub_pixGetMpositionSubPixget_mposition_sub_pixGetMpositionSubPixGetMpositionSubPix, disp_imagedisp_imageDispImagedisp_imageDispImageDispImage

See also

disp_objdisp_objDispObjdisp_objDispObjDispObj, update_window_poseupdate_window_poseUpdateWindowPoseupdate_window_poseUpdateWindowPoseUpdateWindowPose, set_paintset_paintSetPaintset_paintSetPaintSetPaint

Module

Foundation


ClassesClassesClassesClasses | | | | Operators