The HotspotMaskGenerator class is used when a hotspot has to be found in an image. A hotspot is the region of the image where the mean intensity is maximal (=brightest spot). It is usually used in PET scans. The identification of the hotspot is done as follows: First a cubic (or circular, if image is 2d) mask of predefined size is generated. This mask is then convolved with the input image (in fourier domain). The maximum value of the convolved image then corresponds to the hotspot. If a maskGenerator is set, only the pixels of the convolved image where the corresponding mask is == label are searched for the maximum value.
More...
#include <mitkHotspotMaskGenerator.h>
The HotspotMaskGenerator class is used when a hotspot has to be found in an image. A hotspot is the region of the image where the mean intensity is maximal (=brightest spot). It is usually used in PET scans. The identification of the hotspot is done as follows: First a cubic (or circular, if image is 2d) mask of predefined size is generated. This mask is then convolved with the input image (in fourier domain). The maximum value of the convolved image then corresponds to the hotspot. If a maskGenerator is set, only the pixels of the convolved image where the corresponding mask is == label are searched for the maximum value.
Definition at line 37 of file mitkHotspotMaskGenerator.h.
◆ ConstPointer
◆ Pointer
◆ Self
◆ Superclass
◆ HotspotMaskGenerator()
mitk::HotspotMaskGenerator::HotspotMaskGenerator |
( |
| ) |
|
|
protected |
◆ ~HotspotMaskGenerator()
mitk::HotspotMaskGenerator::~HotspotMaskGenerator |
( |
| ) |
|
|
overrideprotected |
◆ GetClassName()
virtual const char* mitk::HotspotMaskGenerator::GetClassName |
( |
| ) |
const |
|
virtual |
◆ GetConvolutionImageMinIndex()
vnl_vector<int> mitk::HotspotMaskGenerator::GetConvolutionImageMinIndex |
( |
| ) |
|
Returns the index where the convolution image is minimal (darkest spot in image)
◆ GetHotspotIndex()
vnl_vector<int> mitk::HotspotMaskGenerator::GetHotspotIndex |
( |
| ) |
|
Returns the image index where the hotspot is located.
◆ GetHotspotMustBeCompletelyInsideImage()
bool mitk::HotspotMaskGenerator::GetHotspotMustBeCompletelyInsideImage |
( |
| ) |
const |
◆ GetHotspotRadiusinMM()
const double& mitk::HotspotMaskGenerator::GetHotspotRadiusinMM |
( |
| ) |
const |
◆ GetMask()
Computes and returns the hotspot mask. The hotspot mask has the same size as the input image. The hopspot has value 1, the remaining pixels are set to 0.
Implements mitk::MaskGenerator.
◆ New()
static Pointer mitk::HotspotMaskGenerator::New |
( |
| ) |
|
|
static |
Method for creation through the object factory.
◆ SetHotspotMustBeCompletelyInsideImage()
void mitk::HotspotMaskGenerator::SetHotspotMustBeCompletelyInsideImage |
( |
bool |
hotspotCompletelyInsideImage | ) |
|
Define whether the hotspot must be completely inside the image. Default is true.
◆ SetHotspotRadiusInMM()
void mitk::HotspotMaskGenerator::SetHotspotRadiusInMM |
( |
double |
radiusInMillimeter | ) |
|
Set the radius of the hotspot (in MM)
◆ SetInputImage()
Set the input image. Required for this class.
◆ SetLabel()
void mitk::HotspotMaskGenerator::SetLabel |
( |
unsigned short |
label | ) |
|
If a maskGenerator is set, this detemines which mask value is used.
◆ SetMask()
Set a mask (can be nullptr if no mask is desired)
◆ SetTimeStep()
void mitk::HotspotMaskGenerator::SetTimeStep |
( |
unsigned int |
timeStep | ) |
|
|
overridevirtual |
SetTimeStep is used to set the time step for which the mask is to be generated.
- Parameters
-
Reimplemented from mitk::MaskGenerator.
The documentation for this class was generated from the following file: