![]() |
Computer Assited Medical Intervention Tool Kit
|
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 to add a pixel in the list using the last picked pixel. | |
| void | changePixelIndexList (QList< QVector3D > *liste) |
| Change pixel list (copy the one given in parameters) | |
| void | changePixelIndexListFromRealCoordinates (QList< QVector3D > *listeOfRealCoords) |
| Change pixel list from a list of real coordinates. | |
| QList< QVector3D > * | getCoordIndexList () |
| return the list of coordinates pixel index | |
| ImageComponent * | getImage () |
| the managed ImageComponent | |
| QList< QVector3D > * | getPixelIndexList () |
| return the list of pixel index | |
| QList< double > * | getPixelValueList () |
| return the liste of pixel values | |
| void | modifyPixel (int row) |
| Allows 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 (ImageComponent *) | |
| constructor | |
| void | removePixel (int id) |
| Allows 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 | |
Private Member Functions | |
| QVector3D | convertCoordinatesToIndex (double x, double y, double z) |
| conversion pixel index to coordinates | |
| QVector3D | convertIndexToCoordinates (int i, int j, int k) |
| conversion pixel index to coordinates | |
Private Attributes | |
| ImageComponent * | image |
| ImageComponent where the pixels are clicked. | |
| QList< QVector3D > * | pixelIndexList |
| this is a list of pixels (as i,j,k indexes in the 3 directions) | |
This class is dedicated to manage an ImageComponent with a list of selected/picked pixels.
This class allows to manage a generic list of pixels too (add, remove, modify and save some points).
| PickedPixelMap::PickedPixelMap | ( | ImageComponent * | imageComp | ) |
constructor
References image, and pixelIndexList.
|
virtual |
destructor
| void PickedPixelMap::addPixel | ( | ) |
Allows to add a pixel in the list using the last picked pixel.
References camitk::ImageComponent::getLastPixelPicked(), image, and pixelIndexList.
Referenced by MultiPickingWidget::addPixelinTable().
| void PickedPixelMap::changePixelIndexList | ( | QList< QVector3D > * | liste | ) |
Change pixel list (copy the one given in parameters)
References pixelIndexList, and resetPixelList().
Referenced by MultiPickingWidget::manuallyModified().
| void PickedPixelMap::changePixelIndexListFromRealCoordinates | ( | QList< QVector3D > * | listeOfRealCoords | ) |
Change pixel list from a list of real coordinates.
References convertCoordinatesToIndex(), pixelIndexList, and resetPixelList().
Referenced by MultiPickingWidget::manuallyModified().
|
private |
conversion pixel index to coordinates
| x | |
| y | |
| z |
References camitk::ImageComponent::getImageOrigin(), camitk::ImageComponent::getVoxelSize(), and image.
Referenced by changePixelIndexListFromRealCoordinates().
|
private |
conversion pixel index to coordinates
| i | the first index pixel to retrieve x in coordinate |
| j | the second index pixel to retrieve y in coordinate |
| k | the third index pixel to retrieve z in coordinate |
References camitk::ImageComponent::getImageOrigin(), camitk::ImageComponent::getVoxelSize(), and image.
Referenced by getCoordIndexList(), and savePixelList().
| QList< QVector3D > * PickedPixelMap::getCoordIndexList | ( | ) |
return the list of coordinates pixel index
References convertIndexToCoordinates(), and pixelIndexList.
Referenced by MultiPickingWidget::updateTable().
| ImageComponent * PickedPixelMap::getImage | ( | ) |
the managed ImageComponent
References image.
| QList< QVector3D > * PickedPixelMap::getPixelIndexList | ( | ) |
return the list of pixel index
References pixelIndexList.
Referenced by RegionGrowingWidget::getSeedPoints(), MultiPickingWidget::removeSeedNumber(), and MultiPickingWidget::updateTable().
| QList< double > * PickedPixelMap::getPixelValueList | ( | ) |
return the liste of pixel values
References camitk::ImageComponent::getImageData(), image, and pixelIndexList.
Referenced by MultiPickingWidget::updateTable().
| void PickedPixelMap::modifyPixel | ( | int | row | ) |
Allows to modify one pixel in the list.
| index | the index in the list of the pixel to modify using the last picked pixel |
References camitk::ImageComponent::getLastPixelPicked(), image, and pixelIndexList.
Referenced by MultiPickingWidget::removeSeedNumber().
| 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 pixelIndexList.
Referenced by MultiPickingWidget::openPixelList().
| void PickedPixelMap::removePixel | ( | int | id | ) |
Allows to remove one pixel in the list.
| index | the index in the list of the pixel to remove |
References pixelIndexList.
Referenced by MultiPickingWidget::removePixelFromTable(), and MultiPickingWidget::removeSeedNumber().
| void PickedPixelMap::resetPixelList | ( | ) |
Empties the pixel list.
References pixelIndexList.
Referenced by changePixelIndexList(), and changePixelIndexListFromRealCoordinates().
| 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)
| fileName | the location where the file will be saved |
References convertIndexToCoordinates(), and pixelIndexList.
Referenced by MultiPickingWidget::savePixelList().
|
private |
ImageComponent where the pixels are clicked.
Referenced by addPixel(), convertCoordinatesToIndex(), convertIndexToCoordinates(), getImage(), getPixelValueList(), modifyPixel(), and PickedPixelMap().
|
private |
this is a list of pixels (as i,j,k indexes in the 3 directions)
Referenced by addPixel(), changePixelIndexList(), changePixelIndexListFromRealCoordinates(), getCoordIndexList(), getPixelIndexList(), getPixelValueList(), modifyPixel(), openPixelList(), PickedPixelMap(), removePixel(), resetPixelList(), and savePixelList().
1.8.1.2