Computer Assisted Medical Intervention Tool Kit  version 6.0
Loading...
Searching...
No Matches
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.
QList< QVector3D > * getCoordIndexList ()
 return the list of coordinates pixel index
camitk::ImageComponentgetImage ()
 the managed ImageComponent
QList< QVector3D > * getPixelIndexList ()
 return the list of pixel index
QList< double > * getPixelValueList ()
 return the liste of pixel values
QList< QVector3D > * getRealWorldList ()
 return the list of coordinates in real world frame
void modifyPixel (int row)
 Allows one to modify one pixel in the list.
void openPixelList (QString fileName)
 open a list of pixel in a given file base name (CSV format, separator = comma).
 PickedPixelMap (camitk::ImageComponent *)
 constructor
void removePixel (int id)
 Allows one to remove one pixel in the list.
void resetPixelList ()
 Empties the pixel list.
void savePixelList (QString fileName)
 save the list of pixel in a given file base name (CSV format, separator = comma).
virtual ~PickedPixelMap ()
 destructor

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.

◆ getCoordIndexList()

QList< QVector3D > * PickedPixelMap::getCoordIndexList ( )

return the list of coordinates pixel index

◆ getImage()

ImageComponent * PickedPixelMap::getImage ( )

the managed ImageComponent

◆ getPixelIndexList()

QList< QVector3D > * PickedPixelMap::getPixelIndexList ( )

return the list of pixel index

◆ getPixelValueList()

QList< double > * PickedPixelMap::getPixelValueList ( )

return the liste of pixel values

◆ getRealWorldList()

QList< QVector3D > * PickedPixelMap::getRealWorldList ( )

return the list of coordinates in real world frame

◆ 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

◆ 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, and resetPixelList().

◆ 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

◆ resetPixelList()

void PickedPixelMap::resetPixelList ( )

Empties the pixel list.

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

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