Skip to content

disp_objDispObjDispObjdisp_objT_disp_obj🔗

Short description🔗

disp_objDispObjDispObjdisp_objT_disp_obj — Displays image objects (image, region, XLD).

Signature🔗

disp_obj( object Object, window WindowHandle )void DispObj( const HObject& Object, const HTuple& WindowHandle )static void HOperatorSet.DispObj( HObject objectVal, HTuple windowHandle )def disp_obj( object: HObject, window_handle: HHandle ) -> None

Herror T_disp_obj( const Hobject Object, const Htuple WindowHandle )

void HObject::DispObj( const HWindow& WindowHandle ) const

void HWindow::DispObj( const HObject& Object ) const

void HObject.DispObj( HWindow windowHandle )

void HWindow.DispObj( HObject objectVal )

Description🔗

disp_objDispObj displays objects depending of their kind. disp_objDispObj is equivalent to disp_imageDispImage for one channel images, equivalent to disp_colorDispColor for three channel images, equivalent to disp_regionDispRegion for regions and equivalent to disp_xldDispXld for XLDs.

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🔗

ObjectobjectValobject (input_object) object(-array) → objectHObjectHObjectHObjectHobject

Image object to be displayed.

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

Example🔗

(HDevelop)

* Output of a gray image:
read_image(Image1,'monkey')
disp_obj(Image1,WindowHandle)
threshold(Image,Region,0,128)
disp_obj(Region,WindowHandle)
(C)
/* Output of a gray image: */
read_image(&Image,"monkey")\;
T_disp_obj(Image,WindowHandle)\;
threshold(Image,&Region,0.0,128.0)\;
T_disp_obj(Region,WindowHandle)\;

Result🔗

If the used object is valid and a correct output mode is set, disp_objDispObj returns 2 (H_MSG_TRUE). Otherwise an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

open_windowOpenWindow, set_rgbSetRgb, set_lutSetLut, set_hsiSetHsi, scale_imageScaleImage, convert_image_typeConvertImageType, min_max_grayMinMaxGray

Alternatives

disp_colorDispColor, disp_imageDispImage, disp_xldDispXld, disp_regionDispRegion

See also

open_windowOpenWindow, reset_obj_dbResetObjDb, set_paintSetPaint, set_lutSetLut, paint_grayPaintGray, scale_imageScaleImage, convert_image_typeConvertImageType, dump_windowDumpWindow

Module🔗

Foundation