Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
GuiImage Class Reference

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>

Inheritance diagram for GuiImage:
Inheritance graph
Collaboration diagram for GuiImage:
Collaboration graph

Signals

void imageUpdated ()
 imageUpdated is called each time a internal property is updated, after that the image views are updated. More...
 

Public Member Functions

 GuiImage (QString fName, QObject *parent=0)
 GuiImage is the GuiImage class constructor. More...
 
virtual ~GuiImage ()
 Destructor. More...
 
ToolcurrentTool ()
 currentTool returns the current Tool. More...
 
Modality modality ()
 modality is the image modality getter. More...
 
QString fileName ()
 fileName is the image absolute path getter. More...
 
QPixmap getSlice (size_t view)
 getSlice calculates and returns a QImage with the current slice of the view.
More...
 
size_t width (size_t view)
 width is the view width. More...
 
size_t heigth (size_t view)
 heigth is the view heigth. More...
 
size_t depth (size_t view)
 depth is the number of slices of the view. More...
 
size_t currentSlice (size_t view)
 currentSlice is the view's current slice. More...
 
void setCurrentSlice (size_t view, size_t slice)
 currentSlice sets the view's current slice. More...
 
Bial::Point3D getPosition (QPointF pos, size_t view)
 getPosition transforms the scene position to the input image coordinates. More...
 
Bial::FastTransform getTransform (size_t axis)
 getTransform returns the transform matrix of the views. More...
 
Bial::MultiImageType getImageType () const
 getImageType returns image type among int, float, Color and RealColor. More...
 
Bial::Image< int > & getIntImage () const
 get*Image More...
 
Bial::Image< float > & getFltImage () const
 
Bial::Image< Bial::Color > & getClrImage () const
 
Bial::Image< Bial::RealColor > & getRclImage () const
 
size_t getDims () const
 getDims More...
 
Bial::Vector< size_t > getDim () const
 getDim More...
 
void rotateAll90 ()
 rotateAll90 rotates all views in 90 degrees. More...
 
void rotate90 (size_t view)
 rotate90 rotates a view in 90 degrees. More...
 
void flipH (size_t view)
 flipH mirrors the current view on X axis. More...
 
void flipV (size_t view)
 flipV mirrors the current view on Y axis. More...
 
int max ()
 max is the maximum integer intensity of the input image. Used for int and Color images. More...
 
float fmax ()
 fmax is the maximum float intensity of the input image. Used for float and RealColor images. More...
 
bool getEqualizeHistogram () const
 getEqualizeHistogram returns a boolean value that says if the image must be equalized or not. More...
 
void setEqualizeHistogram (bool equalizeHistogram)
 setEqualizeHistogram updates a boolean value that says if the image must be equalized or not. More...
 
const Bial::SignalgetHistogram () const
 getHistogram returns the image histogram. More...
 
int getPixel (int x, int y, int z=0)
 getPixel returns the pixel intensity of the image at the given position. More...
 
size_t currentToolPos () const
 
void setCurrentToolPos (const size_t &currentToolPos)
 
QPointF getIntersection (size_t view)
 

Public Attributes

QVector< Tool * > tools
 tools is a vector containing the image tools. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

GuiImage::GuiImage ( QString  fName,
QObject *  parent = 0 
)
explicit

GuiImage is the GuiImage class constructor.

Parameters
fNameis the absolute path to the input image.
parentis the QObject parent.

Definition at line 17 of file guiimage.cpp.

GuiImage::~GuiImage ( )
virtual

Destructor.

Definition at line 146 of file guiimage.cpp.

Member Function Documentation

size_t GuiImage::currentSlice ( size_t  view)

currentSlice is the view's current slice.

Parameters
view
Returns

Definition at line 447 of file guiimage.cpp.

Tool * GuiImage::currentTool ( )

currentTool returns the current Tool.

Returns

Definition at line 150 of file guiimage.cpp.

size_t GuiImage::currentToolPos ( ) const

Definition at line 525 of file guiimage.cpp.

size_t GuiImage::depth ( size_t  view = 0)

depth is the number of slices of the view.

Parameters
view
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
viewView number

Definition at line 415 of file guiimage.cpp.

void GuiImage::flipV ( size_t  view)

flipV mirrors the current view on Y axis.

Parameters
viewView number

Definition at line 424 of file guiimage.cpp.

float GuiImage::fmax ( )

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.

Bial::Image< Bial::Color > & GuiImage::getClrImage ( ) const

Definition at line 366 of file guiimage.cpp.

Bial::Vector< size_t > GuiImage::getDim ( ) const

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.

Bial::Image< float > & GuiImage::getFltImage ( ) const

Definition at line 362 of file guiimage.cpp.

const Bial::Signal & GuiImage::getHistogram ( ) const

getHistogram returns the image histogram.

Returns

Definition at line 463 of file guiimage.cpp.

Bial::MultiImageType GuiImage::getImageType ( ) const

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)

Definition at line 168 of file guiimage.cpp.

Bial::Image< int > & GuiImage::getIntImage ( ) const

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
x
y
z
Returns

Definition at line 470 of file guiimage.cpp.

Bial::Point3D GuiImage::getPosition ( QPointF  pos,
size_t  view 
)

getPosition transforms the scene position to the input image coordinates.

Parameters
posis the graphicsscene position.
viewis the view number.
Returns
The input image coordinates.

Definition at line 344 of file guiimage.cpp.

Bial::Image< Bial::RealColor > & GuiImage::getRclImage ( ) const

Definition at line 370 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
view
Returns

Definition at line 175 of file guiimage.cpp.

Bial::FastTransform GuiImage::getTransform ( size_t  axis)

getTransform returns the transform matrix of the views.

Parameters
view
Returns

Definition at line 350 of file guiimage.cpp.

size_t GuiImage::heigth ( size_t  view = 0)

heigth is the view heigth.

Parameters
view
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.

int GuiImage::max ( )

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 GuiImage::modality ( )

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
viewView number

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
view
slice
Returns

Definition at line 330 of file guiimage.cpp.

void GuiImage::setCurrentToolPos ( const size_t &  currentToolPos)

Definition at line 529 of file guiimage.cpp.

void GuiImage::setEqualizeHistogram ( bool  equalizeHistogram)

setEqualizeHistogram updates a boolean value that says if the image must be equalized or not.

Parameters
equalizeHistogram

Definition at line 455 of file guiimage.cpp.

size_t GuiImage::width ( size_t  view = 0)

width is the view width.

Parameters
view
Returns

Definition at line 318 of file guiimage.cpp.

Member Data Documentation

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: