The GuiImage class is a bridge to the Bial::Image data structure to the QImage data structure.
It have many important functions, such as the views spatial transforms, histogram equalization and others.
More...
#include <guiimage.h>
|
| void | imageUpdated () |
| | imageUpdated is called each time a internal property is updated, after that the image views are updated. More...
|
| |
The GuiImage class is a bridge to the Bial::Image data structure to the QImage data structure.
It have many important functions, such as the views spatial transforms, histogram equalization and others.
Definition at line 20 of file guiimage.h.
| GuiImage::GuiImage |
( |
QString |
fName, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
GuiImage is the GuiImage class constructor.
- Parameters
-
| fName | is the absolute path to the input image. |
| parent | is the QObject parent. |
Definition at line 17 of file guiimage.cpp.
| size_t GuiImage::currentSlice |
( |
size_t |
view | ) |
|
currentSlice is the view's current slice.
- Parameters
-
- Returns
Definition at line 447 of file guiimage.cpp.
| Tool * GuiImage::currentTool |
( |
| ) |
|
| size_t GuiImage::currentToolPos |
( |
| ) |
const |
| size_t GuiImage::depth |
( |
size_t |
view = 0 | ) |
|
depth is the number of slices of the view.
- Parameters
-
- Returns
Definition at line 326 of file guiimage.cpp.
| QString GuiImage::fileName |
( |
| ) |
|
fileName is the image absolute path getter.
- Returns
Definition at line 164 of file guiimage.cpp.
| void GuiImage::flipH |
( |
size_t |
view | ) |
|
flipH mirrors the current view on X axis.
- Parameters
-
Definition at line 415 of file guiimage.cpp.
| void GuiImage::flipV |
( |
size_t |
view | ) |
|
flipV mirrors the current view on Y axis.
- Parameters
-
Definition at line 424 of file guiimage.cpp.
fmax is the maximum float intensity of the input image. Used for float and RealColor images.
- Returns
Definition at line 443 of file guiimage.cpp.
getDim
- Returns
- a vector with bial image dimensions.
Definition at line 390 of file guiimage.cpp.
| size_t GuiImage::getDims |
( |
| ) |
const |
getDims
- Returns
- the number of dimensions
Definition at line 374 of file guiimage.cpp.
| bool GuiImage::getEqualizeHistogram |
( |
| ) |
const |
getEqualizeHistogram returns a boolean value that says if the image must be equalized or not.
- Returns
Definition at line 451 of file guiimage.cpp.
getHistogram returns the image histogram.
- Returns
Definition at line 463 of file guiimage.cpp.
getImageType returns image type among int, float, Color and RealColor.
- Returns
Definition at line 354 of file guiimage.cpp.
| QPointF GuiImage::getIntersection |
( |
size_t |
view | ) |
|
get*Image
- Returns
- a reference to the input image.
Definition at line 358 of file guiimage.cpp.
| int GuiImage::getPixel |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z = 0 |
|
) |
| |
getPixel returns the pixel intensity of the image at the given position.
- Parameters
-
- Returns
Definition at line 470 of file guiimage.cpp.
getPosition transforms the scene position to the input image coordinates.
- Parameters
-
| pos | is the graphicsscene position. |
| view | is the view number. |
- Returns
- The input image coordinates.
Definition at line 344 of file guiimage.cpp.
| QPixmap GuiImage::getSlice |
( |
size_t |
view | ) |
|
getSlice calculates and returns a QImage with the current slice of the view.
- See also
- setCurrentSlice
- Parameters
-
- Returns
Definition at line 175 of file guiimage.cpp.
getTransform returns the transform matrix of the views.
- Parameters
-
- Returns
Definition at line 350 of file guiimage.cpp.
| size_t GuiImage::heigth |
( |
size_t |
view = 0 | ) |
|
heigth is the view heigth.
- Parameters
-
- Returns
Definition at line 322 of file guiimage.cpp.
| void GuiImage::imageUpdated |
( |
| ) |
|
|
signal |
imageUpdated is called each time a internal property is updated, after that the image views are updated.
max is the maximum integer intensity of the input image. Used for int and Color images.
- Returns
Definition at line 439 of file guiimage.cpp.
modality is the image modality getter.
- Returns
Definition at line 160 of file guiimage.cpp.
| void GuiImage::rotate90 |
( |
size_t |
view | ) |
|
rotate90 rotates a view in 90 degrees.
- Parameters
-
Definition at line 406 of file guiimage.cpp.
| void GuiImage::rotateAll90 |
( |
| ) |
|
rotateAll90 rotates all views in 90 degrees.
Definition at line 433 of file guiimage.cpp.
| void GuiImage::setCurrentSlice |
( |
size_t |
view, |
|
|
size_t |
slice |
|
) |
| |
currentSlice sets the view's current slice.
- Parameters
-
- Returns
Definition at line 330 of file guiimage.cpp.
| void GuiImage::setCurrentToolPos |
( |
const size_t & |
currentToolPos | ) |
|
| void GuiImage::setEqualizeHistogram |
( |
bool |
equalizeHistogram | ) |
|
setEqualizeHistogram updates a boolean value that says if the image must be equalized or not.
- Parameters
-
Definition at line 455 of file guiimage.cpp.
| size_t GuiImage::width |
( |
size_t |
view = 0 | ) |
|
width is the view width.
- Parameters
-
- Returns
Definition at line 318 of file guiimage.cpp.
| QVector< Tool* > GuiImage::tools |
tools is a vector containing the image tools.
Definition at line 98 of file guiimage.h.
The documentation for this class was generated from the following files: