UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-11-21)

#include <visp3/ustk_gui/usImageDisplayWidget.h>

+ Inheritance diagram for usImageDisplayWidget:

Public Slots

void updateFrame (const vpImage< unsigned char > img)
 
void updateFrame (const usImagePreScan2D< unsigned char > img)
 
void updateFrame (const usImagePostScan2D< unsigned char > img)
 

Public Member Functions

 usImageDisplayWidget ()
 
 ~usImageDisplayWidget ()
 
void useScanConversion (bool enable)
 
void resizeEvent (QResizeEvent *event)
 

Protected Attributes

QLabel * m_label
 
QImage m_QImage
 
QPixmap m_pixmap
 
bool m_useScanConversion
 
usPreScanToPostScan2DConverter m_scanConverter
 
usImagePostScan2D< unsigned char > m_postScan
 
vpImage< unsigned char > m_image
 

Detailed Description

Qt widget class for 2D ultrasound image display.

Examples
tutorial-image-display-qwidget.cpp.

Definition at line 60 of file usImageDisplayWidget.h.

Constructor & Destructor Documentation

◆ usImageDisplayWidget()

usImageDisplayWidget::usImageDisplayWidget ( )

Constructor.

Definition at line 45 of file usImageDisplayWidget.cpp.

References m_label.

◆ ~usImageDisplayWidget()

usImageDisplayWidget::~usImageDisplayWidget ( )

Destructor.

Definition at line 57 of file usImageDisplayWidget.cpp.

References m_label.

Member Function Documentation

◆ resizeEvent()

void usImageDisplayWidget::resizeEvent ( QResizeEvent *  event)

◆ updateFrame [1/3]

void usImageDisplayWidget::updateFrame ( const usImagePostScan2D< unsigned char >  img)
slot

Slot called to update the ultrasound image to display in case of post-scan image sent.

Parameters
imgNew ultrasound image to display.

Definition at line 83 of file usImageDisplayWidget.cpp.

References m_image, m_label, m_pixmap, m_QImage, and m_useScanConversion.

◆ updateFrame [2/3]

void usImageDisplayWidget::updateFrame ( const usImagePreScan2D< unsigned char >  img)
slot

Slot called to update the ultrasound image to display for pre-scan.

Parameters
imgNew ultrasound image to display.

Definition at line 99 of file usImageDisplayWidget.cpp.

References usPreScanToPostScan2DConverter::convert(), m_image, m_label, m_pixmap, m_postScan, m_QImage, m_scanConverter, and m_useScanConversion.

◆ updateFrame [3/3]

void usImageDisplayWidget::updateFrame ( const vpImage< unsigned char >  img)
slot

Slot called to update the ultrasound image to display.

Parameters
imgNew ultrasound image to display.
Examples
tutorial-image-display-qwidget.cpp.

Definition at line 67 of file usImageDisplayWidget.cpp.

References m_image, m_label, m_pixmap, m_QImage, and m_useScanConversion.

◆ useScanConversion()

void usImageDisplayWidget::useScanConversion ( bool  enable)

Definition at line 128 of file usImageDisplayWidget.cpp.

References m_useScanConversion.

Member Data Documentation

◆ m_image

vpImage<unsigned char> usImageDisplayWidget::m_image
protected

Definition at line 87 of file usImageDisplayWidget.h.

Referenced by updateFrame().

◆ m_label

◆ m_pixmap

◆ m_postScan

usImagePostScan2D<unsigned char> usImageDisplayWidget::m_postScan
protected

◆ m_QImage

◆ m_scanConverter

◆ m_useScanConversion

bool usImageDisplayWidget::m_useScanConversion
protected