39 QVector< QPixmap > cachedPixmaps;
43 QVector< bool > needUpdate;
47 QVector< int > equalization;
59 bool m_equalizeHistogram;
63 QVector< Bial::FastTransform > transform;
67 QVector< Bial::BBox > bounding;
71 QVector< size_t > m_currentSlice;
83 size_t m_currentToolPos;
92 void updateBoundings(
size_t axis );
104 explicit GuiImage( QString fName, QObject *parent = 0 );
136 size_t width(
size_t view );
142 size_t heigth(
size_t view );
148 size_t depth(
size_t view );
212 void flipH(
size_t view );
217 void flipV(
size_t view );
251 int getPixel(
int x,
int y,
int z = 0 );
int max()
max is the maximum integer intensity of the input image. Used for int and Color images.
Tool * currentTool()
currentTool returns the current Tool.
virtual ~GuiImage()
Destructor.
const Bial::Signal & getHistogram() const
getHistogram returns the image histogram.
void rotateAll90()
rotateAll90 rotates all views in 90 degrees.
Signal handeling declaration.
void flipH(size_t view)
flipH mirrors the current view on X axis.
Bial::MultiImageType getImageType() const
getImageType returns image type among int, float, Color and RealColor.
The GuiImage class is a bridge to the Bial::Image data structure to the QImage data structure...
size_t heigth(size_t view)
heigth is the view heigth.
size_t currentToolPos() const
GuiImage(QString fName, QObject *parent=0)
GuiImage is the GuiImage class constructor.
bool getEqualizeHistogram() const
getEqualizeHistogram returns a boolean value that says if the image must be equalized or not...
The Point3D class is a Geometric representation of a point in 3D space. A point is a zerodimension...
Bial::Point3D getPosition(QPointF pos, size_t view)
getPosition transforms the scene position to the input image coordinates.
Bial::Vector< size_t > getDim() const
getDim
size_t depth(size_t view)
depth is the number of slices of the view.
Modality modality()
modality is the image modality getter.
void setCurrentToolPos(const size_t ¤tToolPos)
void flipV(size_t view)
flipV mirrors the current view on Y axis.
QPixmap getSlice(size_t view)
getSlice calculates and returns a QImage with the current slice of the view.
size_t width(size_t view)
width is the view width.
void setCurrentSlice(size_t view, size_t slice)
currentSlice sets the view's current slice.
Bial::FastTransform getTransform(size_t axis)
getTransform returns the transform matrix of the views.
float fmax()
fmax is the maximum float intensity of the input image. Used for float and RealColor images...
The MultiImage class may have only one of the following image types: int, float, Color, or RealColor.
QPointF getIntersection(size_t view)
QString fileName()
fileName is the image absolute path getter.
void imageUpdated()
imageUpdated is called each time a internal property is updated, after that the image views are updat...
Bial::Image< int > & getIntImage() const
get*Image
int getPixel(int x, int y, int z=0)
getPixel returns the pixel intensity of the image at the given position.
void rotate90(size_t view)
rotate90 rotates a view in 90 degrees.
size_t currentSlice(size_t view)
currentSlice is the view's current slice.
QVector< Tool * > tools
tools is a vector containing the image tools.
Bial::Image< Bial::Color > & getClrImage() const
void setEqualizeHistogram(bool equalizeHistogram)
setEqualizeHistogram updates a boolean value that says if the image must be equalized or not...
MultiImageType
The MultiImageType class is used to identify which image type is open in MultiImage.
Bial::Image< float > & getFltImage() const
Bial::Image< Bial::RealColor > & getRclImage() const
size_t getDims() const
getDims