Computer Assisted Medical Intervention Tool Kit  version 5.2
PickedPixelMap Class Reference

This class is dedicated to manage an ImageComponent with a list of selected/picked pixels. More...

#include <PickedPixelMap.h>

+ Collaboration diagram for PickedPixelMap:

Public Member Functions

void addPixel ()
 Allows one to add a pixel in the list using the last picked pixel. More...
 
QList< QVector3D > * getCoordIndexList ()
 return the list of coordinates pixel index More...
 
camitk::ImageComponentgetImage ()
 the managed ImageComponent More...
 
QList< QVector3D > * getPixelIndexList ()
 return the list of pixel index More...
 
QList< double > * getPixelValueList ()
 return the liste of pixel values More...
 
QList< QVector3D > * getRealWorldList ()
 return the list of coordinates in real world frame More...
 
void modifyPixel (int row)
 Allows one to modify one pixel in the list. More...
 
void openPixelList (QString fileName)
 open a list of pixel in a given file base name (CSV format, separator = comma). More...
 
 PickedPixelMap (camitk::ImageComponent *)
 constructor More...
 
void removePixel (int id)
 Allows one to remove one pixel in the list. More...
 
void resetPixelList ()
 Empties the pixel list. More...
 
void savePixelList (QString fileName)
 save the list of pixel in a given file base name (CSV format, separator = comma). More...
 
virtual ~PickedPixelMap ()
 destructor More...
 

Detailed Description

This class is dedicated to manage an ImageComponent with a list of selected/picked pixels.

This class allows one to manage a generic list of pixels too (add, remove, modify and save some points).

Since Frame Usage in CamiTK, PickedPixelMap stores 4 lists:

  • pixelIndexList which stores the picked pixel position as image indices, i.e. integers number of voxels since the image origin (line first, then columns, then depth)
  • localCoordIndexList which stores the pixel position as image real coordinates with the zero of the image at the origin of the image, i.e. this list takes voxel size into account
  • realCoordIndexList which stores the pixel positions in the real world frame, that may not be the image frame.
  • pixelValue: for each index/coord/real coord, stores the gray level value of the image.

No convertion between the lists is done in this class. These conversions are done at pixel clickin by the ImageComponent.

Constructor & Destructor Documentation

◆ PickedPixelMap()

PickedPixelMap::PickedPixelMap ( camitk::ImageComponent imageComp)

constructor

◆ ~PickedPixelMap()

PickedPixelMap::~PickedPixelMap ( )
virtual

destructor

Member Function Documentation

◆ addPixel()

void PickedPixelMap::addPixel ( )

Allows one to add a pixel in the list using the last picked pixel.

Referenced by MultiPickingWidget::addPixelinTable().

+ Here is the caller graph for this function:

◆ getCoordIndexList()

QList< QVector3D > * PickedPixelMap::getCoordIndexList ( )

return the list of coordinates pixel index

Referenced by MultiPickingWidget::updateTable().

+ Here is the caller graph for this function:

◆ getImage()

ImageComponent * PickedPixelMap::getImage ( )

the managed ImageComponent

◆ getPixelIndexList()

QList< QVector3D > * PickedPixelMap::getPixelIndexList ( )

return the list of pixel index

Referenced by RegionGrowingWidget::getSeedPoints(), BoxVOIWidget::getSeedPoints(), MultiPickingWidget::removeSeedNumber(), and MultiPickingWidget::updateTable().

+ Here is the caller graph for this function:

◆ getPixelValueList()

QList< double > * PickedPixelMap::getPixelValueList ( )

return the liste of pixel values

Referenced by MultiPickingWidget::updateTable().

+ Here is the caller graph for this function:

◆ getRealWorldList()

QList< QVector3D > * PickedPixelMap::getRealWorldList ( )

return the list of coordinates in real world frame

Referenced by MultiPickingWidget::updateTable().

+ Here is the caller graph for this function:

◆ modifyPixel()

void PickedPixelMap::modifyPixel ( int  row)

Allows one to modify one pixel in the list.

Parameters
rowthe index in the list of the pixel to modify using the last picked pixel

Referenced by MultiPickingWidget::manuallyModified(), and MultiPickingWidget::removeSeedNumber().

+ Here is the caller graph for this function:

◆ openPixelList()

void PickedPixelMap::openPixelList ( QString  fileName)

open a list of pixel in a given file base name (CSV format, separator = comma).

the format is : index (int) , i (int) , j (int) , k (int) , x (double) , y (double) , z (double)

References CAMITK_WARNING_ALT.

Referenced by MultiPickingWidget::openPixelList().

+ Here is the caller graph for this function:

◆ removePixel()

void PickedPixelMap::removePixel ( int  id)

Allows one to remove one pixel in the list.

Parameters
idthe index in the list of the pixel to remove

Referenced by MultiPickingWidget::removePixelFromTable(), and MultiPickingWidget::removeSeedNumber().

+ Here is the caller graph for this function:

◆ resetPixelList()

void PickedPixelMap::resetPixelList ( )

Empties the pixel list.

◆ savePixelList()

void PickedPixelMap::savePixelList ( QString  fileName)

save the list of pixel in a given file base name (CSV format, separator = comma).

".csv" is automatically added if needed. the format is : index (int) , i (int) , j (int) , k (int) , x (double) , y (double) , z (double)

Parameters
fileNamethe location where the file will be saved

Referenced by MultiPickingWidget::savePixelList().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: