Computer Assited Medical Intervention Tool Kit  version 5.0
PickedPixelMap Class Reference

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

#include <PickedPixelMap.h>

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...
 

Private Attributes

QList< QVector3D > * coordIndexList
 list of corresponding image coordinates, i.e. taking voxel size into account, but in the local frame of the image More...
 
camitk::ImageComponentimage
 ImageComponent where the pixels are clicked. More...
 
QList< QVector3D > * pixelIndexList
 this is a list of pixels (as i,j,k indexes in the 3 directions) More...
 
QList< double > * pixelValueList
 list of corresponding pixel values More...
 
QList< QVector3D > * realCoordList
 list of corresponding coordinates in real world frame. 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)

◆ ~PickedPixelMap()

PickedPixelMap::~PickedPixelMap ( )
virtual

Member Function Documentation

◆ addPixel()

◆ getCoordIndexList()

QList< QVector3D > * PickedPixelMap::getCoordIndexList ( )

return the list of coordinates pixel index

References coordIndexList.

Referenced by MultiPickingWidget::updateTable().

◆ getImage()

ImageComponent * PickedPixelMap::getImage ( )

the managed ImageComponent

References image.

◆ getPixelIndexList()

QList< QVector3D > * PickedPixelMap::getPixelIndexList ( )

◆ getPixelValueList()

QList< double > * PickedPixelMap::getPixelValueList ( )

return the liste of pixel values

References pixelValueList.

Referenced by MultiPickingWidget::updateTable().

◆ getRealWorldList()

QList< QVector3D > * PickedPixelMap::getRealWorldList ( )

return the list of coordinates in real world frame

References realCoordList.

Referenced by MultiPickingWidget::updateTable().

◆ modifyPixel()

void PickedPixelMap::modifyPixel ( int  row)

◆ 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, coordIndexList, pixelIndexList, pixelValueList, realCoordList, and resetPixelList().

Referenced by MultiPickingWidget::openPixelList().

◆ 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

References coordIndexList, pixelIndexList, pixelValueList, and realCoordList.

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

◆ resetPixelList()

void PickedPixelMap::resetPixelList ( )

Empties the pixel list.

References coordIndexList, pixelIndexList, pixelValueList, and realCoordList.

Referenced by openPixelList().

◆ 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

References coordIndexList, pixelIndexList, pixelValueList, and realCoordList.

Referenced by MultiPickingWidget::savePixelList().

Member Data Documentation

◆ coordIndexList

QList<QVector3D>* PickedPixelMap::coordIndexList
private

list of corresponding image coordinates, i.e. taking voxel size into account, but in the local frame of the image

Referenced by addPixel(), getCoordIndexList(), modifyPixel(), openPixelList(), PickedPixelMap(), removePixel(), resetPixelList(), savePixelList(), and ~PickedPixelMap().

◆ image

camitk::ImageComponent* PickedPixelMap::image
private

ImageComponent where the pixels are clicked.

Referenced by addPixel(), getImage(), modifyPixel(), and PickedPixelMap().

◆ pixelIndexList

QList<QVector3D>* PickedPixelMap::pixelIndexList
private

this is a list of pixels (as i,j,k indexes in the 3 directions)

Referenced by addPixel(), getPixelIndexList(), modifyPixel(), openPixelList(), PickedPixelMap(), removePixel(), resetPixelList(), savePixelList(), and ~PickedPixelMap().

◆ pixelValueList

QList<double>* PickedPixelMap::pixelValueList
private

◆ realCoordList

QList<QVector3D>* PickedPixelMap::realCoordList
private

list of corresponding coordinates in real world frame.

Referenced by addPixel(), getRealWorldList(), modifyPixel(), openPixelList(), PickedPixelMap(), removePixel(), resetPixelList(), savePixelList(), and ~PickedPixelMap().


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