Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Private Attributes | List of all members
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:

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

◆ getCoordIndexList()

QList< QVector3D > * PickedPixelMap::getCoordIndexList ( )

return the list of coordinates pixel index

Referenced by MultiPickingWidget::updateTable().

◆ getImage()

ImageComponent * PickedPixelMap::getImage ( )

the managed ImageComponent

◆ getPixelIndexList()

QList< QVector3D > * PickedPixelMap::getPixelIndexList ( )

◆ getPixelValueList()

QList< double > * PickedPixelMap::getPixelValueList ( )

return the liste of pixel values

Referenced by MultiPickingWidget::updateTable().

◆ getRealWorldList()

QList< QVector3D > * PickedPixelMap::getRealWorldList ( )

return the list of coordinates in real world frame

Referenced by MultiPickingWidget::updateTable().

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

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

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

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

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

◆ image

camitk::ImageComponent* PickedPixelMap::image
private

ImageComponent where the pixels are clicked.

◆ pixelIndexList

QList<QVector3D>* PickedPixelMap::pixelIndexList
private

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

◆ pixelValueList

QList<double>* PickedPixelMap::pixelValueList
private

list of corresponding pixel values

◆ realCoordList

QList<QVector3D>* PickedPixelMap::realCoordList
private

list of corresponding coordinates in real world frame.


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