![]() |
Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
The Image class is used to handle N-Dimensional images, and has support to Read and Write image files. More...
#include <Adjacency.hpp>

Public Member Functions | |
| Image () | |
| Basic Constructor. More... | |
| Image (const Vector< size_t > &spc_dim) | |
| Basic Constructor. Two to three dimensions. More... | |
| Image (D *new_data, const Vector< size_t > &new_dim) | |
| Basic Constructor. Two to four dimensions. This constructor works as a wrapper for data already allocated. It will use the same space pointed by new_data to manipulate the image. Use this for compatibility with other data structures, in a easy convertion to Image class. More... | |
| Image (const Vector< size_t > &spc_dim, const Vector< float > &pixel_size) | |
| Basic Constructor. More... | |
| Image (size_t spc_dim_0, size_t spc_dim_1) | |
| Basic Constructor for 2D image. More... | |
| Image (size_t spc_dim_0, size_t spc_dim_1, size_t spc_dim_2) | |
| Basic Constructor for 3D image. More... | |
| Image (const Matrix< D > &mtx) | |
| Basic Constructor for 3D image. More... | |
| Image (const Matrix< D > &mtx, const Vector< float > &pixel_size) | |
| Basic Constructor for 3D image. More... | |
| template<class D2 > | |
| Image (const Image< D2 > &img) | |
| Copy constructor. More... | |
| Image (const Image< D > &img) | |
| Copy Constructor. More... | |
| Image (Image< D > &&img) | |
| Move Constructor. More... | |
| ~Image () | |
| Image< D > & | operator= (const Image< D > &other) |
| Assigns 'other'image to this image. More... | |
| Image< D > & | operator= (Image< D > &&other) |
| Assigns 'other'image to this image, moving the content. More... | |
| Image< D > & | operator= (D scalar) |
| Assigns scalar to all image pixels. More... | |
| template<class D2 > | |
| Image< D > & | operator= (const Image< D2 > &other) |
| Assigns 'other'image to this image. More... | |
| const D & | operator[] (size_t p) const |
| Returns a constant reference of data pointed by index p. Same as operator()( p ). More... | |
| D & | operator[] (size_t p) |
| Returns the reference for data pointed by index p. Same as operator()( p ). More... | |
| const D & | operator() (size_t p) const |
| Returns constant reference of data pointed by index p. It has the same effect as operator data[ p ]. More... | |
| D & | operator() (size_t p) |
| Returns the reference for data pointed by index p. It has the same effect as operator data[ p ]. More... | |
| const D & | operator() (size_t p_0, size_t p_1) const |
| Returns constant reference of data pointed by index ( p_0, p_1 ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] ]. More... | |
| D & | operator() (size_t p_0, size_t p_1) |
| Returns the reference for data pointed by index ( p_0, p_1 ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] ]. More... | |
| const D & | operator() (size_t p_0, size_t p_1, size_t p_2) const |
| Returns constant reference of data pointed by index ( p_0, p_1, p_2 ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] + p_2 * dim_size[ 0 ] * dim_size[ 1 ] ]. More... | |
| D & | operator() (size_t p_0, size_t p_1, size_t p_2) |
| Returns the reference for data pointed by index ( p_0, p_1 ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] + p_2 * dim_size[ 0 ] * dim_size[ 1 ] ]. More... | |
| const D & | operator() (const Vector< size_t > &p) const |
| Returns constant reference of data pointed by index ( p[ 0 ], p[ 1 ], [ p[ 2 ] ] ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] + [ p_2 * dim_size[ 0 ] * dim_size[ 1 ] ] ]. More... | |
| D & | operator() (const Vector< size_t > &p) |
| Returns a reference of data pointed by index ( p[ 0 ], p[ 1 ], [ p[ 2 ] ] ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] + [ p_2 * dim_size[ 0 ] * dim_size[ 1 ] ] ]. More... | |
| std::vector< D >::iterator | begin () noexcept |
| Returns iterator begin() of data. More... | |
| std::vector< D >::const_iterator | begin () const noexcept |
| Returns const_iterator begin() of data Vector. More... | |
| std::vector< D >::iterator | end () noexcept |
| Returns iterator end() of data. More... | |
| std::vector< D >::const_iterator | end () const noexcept |
| Returns const_iterator end() of data. More... | |
| std::vector< D >::reverse_iterator | rbegin () noexcept |
| Returns the iterator rbegin() of data Vector. More... | |
| std::vector< D >::const_reverse_iterator | rbegin () const noexcept |
| Returns const_iterator rbegin() of data Vector. More... | |
| std::vector< D >::reverse_iterator | rend () noexcept |
| Returns iterator rend() of data Vector. More... | |
| std::vector< D >::const_reverse_iterator | rend () const noexcept |
| Returns const_iterator rend() of data Vector. More... | |
| std::vector< D >::const_iterator | cbegin () const noexcept |
| Returns the iterator cbegin() of data Vector. More... | |
| std::vector< D >::const_iterator | cend () const noexcept |
| Returns the iterator cend() of data Vector. More... | |
| std::vector< D >::const_reverse_iterator | crbegin () const noexcept |
| Returns the iterator crbegin() of data Vector. More... | |
| std::vector< D >::const_reverse_iterator | crend () const noexcept |
| Returns the iterator crend() of data Vector. More... | |
| const Matrix< D > & | DataMatrix () const |
| Returns a pointer to data in Matrix. More... | |
| Matrix< D > & | DataMatrix () |
| Returns a pointer to data in Matrix. More... | |
| const D * | Data () const |
| Returns a pointer to data in Matrix. More... | |
| D * | Data () |
| Returns a pointer to data in Matrix. More... | |
| const D * | data () const |
| Returns a pointer to data in Matrix. More... | |
| D * | data () |
| Returns a pointer to data in Matrix. More... | |
| size_t | Size () const |
| Returns the image size. More... | |
| size_t | size () const |
| Returns the image size. Same as Size( ), just for compatibility with std containers. More... | |
| size_t | Coordinate (size_t position, size_t dimension) const |
| Returns the coordinate of position in given dimension. More... | |
| Vector< size_t > | Coordinates (size_t position) const |
| Returns the coordinates of the input position in this image. More... | |
| size_t | Position (size_t p_0, size_t p_1) const |
| Returns the position corresponding to the input coordinates in this image. More... | |
| size_t | Position (size_t p_0, size_t p_1, size_t p_2) const |
| Returns the position corresponding to the input coordinates in this image. More... | |
| size_t | Position (const Vector< size_t > &coordinates) const |
| Returns the position corresponding to the input coordinates in this image. More... | |
| size_t | Position (const Vector< int > &coordinates) const |
| Returns the position corresponding to the input coordinates in this image. More... | |
| size_t | Position (const Vector< float > &coordinates) const |
| Returns the position corresponding to the input coordinates in this image. More... | |
| void | Set (D val) |
| Sets val to each element of the entire image. More... | |
| Vector< size_t > | Dim () const |
| Returns a Vector with image dimensions. More... | |
| size_t | MinDim () const |
| Returns the minimum size among dimensions. More... | |
| size_t | MaxDim () const |
| Returns the maximum size among dimensions. More... | |
| size_t | Size (size_t dms) const |
| Returns image dimension dms. More... | |
| size_t | size (size_t dms) const |
| Returns image dimension dms. Just for symmetry with size( ) and Size( ) functions. More... | |
| size_t | Dims () const |
| Returns the number of dimensions of the image. More... | |
| size_t | Displacement (size_t dms) const |
| Returns the position displacement of one unit in dimension dms. More... | |
| const D & | at (size_t p) const |
| Reads the constant reverence of value contained at position p of data Vector. More... | |
| D & | at (size_t p) |
| Reads the value contained at position p of data Vector and returns its reference. More... | |
| const D & | at (size_t p_0, size_t p_1) const |
| Reads the constant reverence of value contained at position p_0, p_1 of data Vector. More... | |
| D & | at (size_t p_0, size_t p_1) |
| Reads the value contained at position p_0, p_1 of data Vector and returns its reference. More... | |
| const D & | at (size_t p_0, size_t p_1, size_t p_2) const |
| Reads the constant reverence of value contained at position p_0, p_1, p_2 of data Vector. More... | |
| D & | at (size_t p_0, size_t p_1, size_t p_2) |
| Reads the value contained at position p_0, p_1, p_2 of data Vector and returns its reference. More... | |
| const D & | at (size_t p_0, size_t p_1, size_t p_2, size_t p_3) const |
| Reads the constant reverence of value contained at position p_0, p_1, p_2, p_3 of data Vector. More... | |
| D & | at (size_t p_0, size_t p_1, size_t p_2, size_t p_3) |
| Reads the value contained at position p_0, p_1, p_2, p_3 of data Vector and returns its reference. More... | |
| const D & | at (const Vector< size_t > &p) const |
| Returns constant reference of data pointed by index ( p[ 0 ], p[ 1 ], p[ 2 ], ... ). It has the same effect as operator data[ p_0 + p_1 * acc_dim_size[ 0 ] + p_2 * acc_dim_size[ 1 ] ... ]. More... | |
| D & | at (const Vector< size_t > &p) |
| Returns constant reference of data pointed by index ( p[ 0 ], p[ 1 ], p[ 2 ], ... ). It has the same effect as operator data[ p_0 + p_1 * acc_dim_size[ 0 ] + p_2 * acc_dim_size[ 1 ] ... ]. More... | |
| Vector< float > | PixelSize () const |
| Returns a Vector with all pixel dimensions. More... | |
| void | PixelSize (const Vector< float > &val) |
| Update pixel dimensions. More... | |
| float | PixelSize (size_t dms) const |
| Returns pixel dimension dms. More... | |
| void | PixelSize (size_t dms, float val) |
| Assigns val to pixel dimension dms. More... | |
| bool | ValidCoordinate (const Vector< size_t > &pxl) const |
| Verifies if a given pixel coordinate is in image domain. More... | |
| bool | ValidCoordinate (size_t x, size_t y) const |
| Verifies if a given pixel coordinate is in image domain. More... | |
| bool | ValidCoordinate (size_t x, size_t y, size_t z) const |
| Verifies if a given pixel coordinate is in image domain. More... | |
| template<class D2 > | |
| void | SetRange (D2 min, D2 max) |
| Recalculate the intensity scale of the data by the following formula: img[ pxl ] = min + ( img[ pxl ] - img_min ) * ( max - min ) / ( img_max - img_min ) More... | |
| D | Minimum () const |
| Returns the minimum value in Image. More... | |
| D | Maximum () const |
| Returns the maximum value in Image. More... | |
| template<class O > | |
| void | PrintPixelSize (O &os) const |
| Prints image dimensions to output stream os. More... | |
| template<class O > | |
| void | Print (O &os) const |
| Prints image containts to output stream os. More... | |
| template<class O > | |
| void | PrintDimensions (O &os) const |
| Prints image dimensions to output stream os. More... | |
Protected Member Functions | |
| void | CreateTables () |
| Creates y_table and z_table with correct references to qk_data. More... | |
| void | DestroyTables () |
| Destroys y_table and z_table. More... | |
Protected Attributes | |
| Matrix< D > | _data |
| All pixel's information here. Dimension order: space -> color. More... | |
| D * | qk_data |
| Quick access reference for data. More... | |
| Vector< float > | pixel_size |
| Dimensions of the pixels (dpi). Its size is the number of dimensions. More... | |
| D ** | y_table |
| Pointer to qk_data element in the case of 2D image access by coordinates. More... | |
| D *** | z_table |
| Pointer to y_table element in the case of 3D image access by coordinates. More... | |
Friends | |
| template<class D2 > | |
| class | Image |
The Image class is used to handle N-Dimensional images, and has support to Read and Write image files.
Definition at line 22 of file Adjacency.hpp.
| Bial::Image< D >::Image | ( | ) |
Basic Constructor.
| none. |
| Bial::Image< D >::Image | ( | const Vector< size_t > & | spc_dim | ) |
Basic Constructor. Two to three dimensions.
| spc_dim | Vector with image dimensions. |
| Bial::Image< D >::Image | ( | D * | new_data, |
| const Vector< size_t > & | new_dim | ||
| ) |
Basic Constructor. Two to four dimensions. This constructor works as a wrapper for data already allocated. It will use the same space pointed by new_data to manipulate the image. Use this for compatibility with other data structures, in a easy convertion to Image class.
| new_data | Pointer to data allocated elsewhere. |
| new_dim | Image dimensions. |
| Bial::Image< D >::Image | ( | const Vector< size_t > & | spc_dim, |
| const Vector< float > & | pixel_size | ||
| ) |
Basic Constructor.
| spc_dim | Vector with image dimensions. Must be two or three. |
| pixel_size | array with pixel dimensions. Must be two or three. |
| Bial::Image< D >::Image | ( | size_t | spc_dim_0, |
| size_t | spc_dim_1 | ||
| ) |
Basic Constructor for 2D image.
| spc_dim_0 | image dimension 0. |
| spc_dim_1 | image dimension 1. |
| Bial::Image< D >::Image | ( | size_t | spc_dim_0, |
| size_t | spc_dim_1, | ||
| size_t | spc_dim_2 | ||
| ) |
Basic Constructor for 3D image.
| spc_dim_0 | image dimension 0. |
| spc_dim_1 | image dimension 1. |
| spc_dim_2 | image dimension 2. |
| Bial::Image< D >::Image | ( | const Matrix< D > & | mtx | ) |
Basic Constructor for 3D image.
| mtx | Data matrix. |
| Bial::Image< D >::Image | ( | const Matrix< D > & | mtx, |
| const Vector< float > & | pixel_size | ||
| ) |
Basic Constructor for 3D image.
| mtx | Data matrix. |
| pixel_size | Dimensions of the pixels. |
Copy constructor.
| img | Source image to be clonned. |
| Bial::Image< D >::Image | ( | const Image< D > & | img | ) |
Copy Constructor.
| filename | File name. |
| Bial::Image< D >::Image | ( | Image< D > && | img | ) |
Move Constructor.
| img | Other image. |
|
inline |
| const D& Bial::Image< D >::at | ( | size_t | p | ) | const |
| D& Bial::Image< D >::at | ( | size_t | p | ) |
| const D& Bial::Image< D >::at | ( | size_t | p_0, |
| size_t | p_1 | ||
| ) | const |
Reads the constant reverence of value contained at position p_0, p_1 of data Vector.
| p_0 | first index of the data being accessed. |
| p_1 | second index of the data being accessed. |
| D& Bial::Image< D >::at | ( | size_t | p_0, |
| size_t | p_1 | ||
| ) |
| const D& Bial::Image< D >::at | ( | size_t | p_0, |
| size_t | p_1, | ||
| size_t | p_2 | ||
| ) | const |
Reads the constant reverence of value contained at position p_0, p_1, p_2 of data Vector.
| p_0 | first index of the data being accessed. |
| p_1 | second index of the data being accessed. |
| p_2 | third index of the data being accessed. |
| D& Bial::Image< D >::at | ( | size_t | p_0, |
| size_t | p_1, | ||
| size_t | p_2 | ||
| ) |
Reads the value contained at position p_0, p_1, p_2 of data Vector and returns its reference.
| p_0 | first index of the data being accessed. |
| p_1 | second index of the data being accessed. |
| p_2 | third index of the data being accessed. |
| const D& Bial::Image< D >::at | ( | size_t | p_0, |
| size_t | p_1, | ||
| size_t | p_2, | ||
| size_t | p_3 | ||
| ) | const |
Reads the constant reverence of value contained at position p_0, p_1, p_2, p_3 of data Vector.
| p_0 | first index of the data being accessed. |
| p_1 | second index of the data being accessed. |
| p_2 | third index of the data being accessed. |
| p_3 | fourth index of the data being accessed. |
| D& Bial::Image< D >::at | ( | size_t | p_0, |
| size_t | p_1, | ||
| size_t | p_2, | ||
| size_t | p_3 | ||
| ) |
Reads the value contained at position p_0, p_1, p_2, p_3 of data Vector and returns its reference.
| p_0 | first index of the data being accessed. |
| p_1 | second index of the data being accessed. |
| p_2 | third index of the data being accessed. |
| p_3 | fourth index of the data being accessed. |
| const D& Bial::Image< D >::at | ( | const Vector< size_t > & | p | ) | const |
Returns constant reference of data pointed by index ( p[ 0 ], p[ 1 ], p[ 2 ], ... ). It has the same effect as operator data[ p_0 + p_1 * acc_dim_size[ 0 ] + p_2 * acc_dim_size[ 1 ] ... ].
| p | Vector of indexes to be acessed. |
| D& Bial::Image< D >::at | ( | const Vector< size_t > & | p | ) |
Returns constant reference of data pointed by index ( p[ 0 ], p[ 1 ], p[ 2 ], ... ). It has the same effect as operator data[ p_0 + p_1 * acc_dim_size[ 0 ] + p_2 * acc_dim_size[ 1 ] ... ].
| p | Vector of indexes to be acessed. |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
| size_t Bial::Image< D >::Coordinate | ( | size_t | position, |
| size_t | dimension | ||
| ) | const |
Returns the coordinate of position in given dimension.
| position | Dimension index. |
| dimension | An image dimension. |
| Vector< size_t > Bial::Image< D >::Coordinates | ( | size_t | position | ) | const |
Returns the coordinates of the input position in this image.
| index | element position. |
|
noexcept |
|
protected |
Creates y_table and z_table with correct references to qk_data.
| none. |
|
noexcept |
| const D* Bial::Image< D >::Data | ( | ) | const |
| D* Bial::Image< D >::Data | ( | ) |
| const D* Bial::Image< D >::data | ( | ) | const |
| D* Bial::Image< D >::data | ( | ) |
| const Matrix< D >& Bial::Image< D >::DataMatrix | ( | ) | const |
| Matrix< D >& Bial::Image< D >::DataMatrix | ( | ) |
|
protected |
Destroys y_table and z_table.
| none. |
| Vector< size_t > Bial::Image< D >::Dim | ( | ) | const |
| size_t Bial::Image< D >::Dims | ( | ) | const |
Returns the number of dimensions of the image.
| none. |
| size_t Bial::Image< D >::Displacement | ( | size_t | dms | ) | const |
Returns the position displacement of one unit in dimension dms.
| dms | The required dimension. |
|
noexcept |
|
noexcept |
| size_t Bial::Image< D >::MaxDim | ( | ) | const |
Returns the maximum size among dimensions.
| none. |
| D Bial::Image< D >::Maximum | ( | ) | const |
| size_t Bial::Image< D >::MinDim | ( | ) | const |
Returns the minimum size among dimensions.
| none. |
| D Bial::Image< D >::Minimum | ( | ) | const |
| const D& Bial::Image< D >::operator() | ( | size_t | p | ) | const |
Returns constant reference of data pointed by index p. It has the same effect as operator data[ p ].
| p | a global index to be acessed. |
| D& Bial::Image< D >::operator() | ( | size_t | p | ) |
Returns the reference for data pointed by index p. It has the same effect as operator data[ p ].
| p | a global index to be acessed. |
| const D& Bial::Image< D >::operator() | ( | size_t | p_0, |
| size_t | p_1 | ||
| ) | const |
Returns constant reference of data pointed by index ( p_0, p_1 ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] ].
| p_0 | first index to be acessed. |
| p_1 | second index to be acessed. |
| D& Bial::Image< D >::operator() | ( | size_t | p_0, |
| size_t | p_1 | ||
| ) |
Returns the reference for data pointed by index ( p_0, p_1 ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] ].
| p_0 | first index to be acessed. |
| p_1 | second index to be acessed. |
| const D& Bial::Image< D >::operator() | ( | size_t | p_0, |
| size_t | p_1, | ||
| size_t | p_2 | ||
| ) | const |
Returns constant reference of data pointed by index ( p_0, p_1, p_2 ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] + p_2 * dim_size[ 0 ] * dim_size[ 1 ] ].
| p_0 | first index to be acessed. |
| p_1 | second index to be acessed. |
| p_2 | third index to be acessed. |
| D& Bial::Image< D >::operator() | ( | size_t | p_0, |
| size_t | p_1, | ||
| size_t | p_2 | ||
| ) |
Returns the reference for data pointed by index ( p_0, p_1 ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] + p_2 * dim_size[ 0 ] * dim_size[ 1 ] ].
| p_0 | first index to be acessed. |
| p_1 | second index to be acessed. |
| p_2 | third index to be acessed. |
| const D& Bial::Image< D >::operator() | ( | const Vector< size_t > & | p | ) | const |
Returns constant reference of data pointed by index ( p[ 0 ], p[ 1 ], [ p[ 2 ] ] ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] + [ p_2 * dim_size[ 0 ] * dim_size[ 1 ] ] ].
| p | Vector of indexes to be acessed. |
| D& Bial::Image< D >::operator() | ( | const Vector< size_t > & | p | ) |
Returns a reference of data pointed by index ( p[ 0 ], p[ 1 ], [ p[ 2 ] ] ). It has the same effect as operator data[ p_0 + p_1 * dim_size[ 0 ] + [ p_2 * dim_size[ 0 ] * dim_size[ 1 ] ] ].
| p | Vector of indexes to be acessed. |
| Image< D >& Bial::Image< D >::operator= | ( | const Image< D > & | other | ) |
Assigns 'other'image to this image.
| other | Image to be assigned to this. |
| Image< D >& Bial::Image< D >::operator= | ( | Image< D > && | other | ) |
Assigns 'other'image to this image, moving the content.
| other | Image to be assigned to this. |
| Image< D >& Bial::Image< D >::operator= | ( | D | scalar | ) |
Assigns scalar to all image pixels.
| scalar | Scalar to be assigned. |
| Image< D >& Bial::Image< D >::operator= | ( | const Image< D2 > & | other | ) |
Assigns 'other'image to this image.
| other | Image to be assigned to this. |
| const D& Bial::Image< D >::operator[] | ( | size_t | p | ) | const |
Returns a constant reference of data pointed by index p. Same as operator()( p ).
| p | a global index to be acessed. |
| D& Bial::Image< D >::operator[] | ( | size_t | p | ) |
Returns the reference for data pointed by index p. Same as operator()( p ).
| p | a global index to be acessed. |
| Vector< float > Bial::Image< D >::PixelSize | ( | ) | const |
Returns a Vector with all pixel dimensions.
| none. |
| void Bial::Image< D >::PixelSize | ( | const Vector< float > & | val | ) |
Update pixel dimensions.
| val | new pixel dimensions. |
| float Bial::Image< D >::PixelSize | ( | size_t | dms | ) | const |
Returns pixel dimension dms.
| dms | A dimension. |
| void Bial::Image< D >::PixelSize | ( | size_t | dms, |
| float | val | ||
| ) |
Assigns val to pixel dimension dms.
| dms | The required dimension. |
| val | Dimension value. |
| size_t Bial::Image< D >::Position | ( | size_t | p_0, |
| size_t | p_1 | ||
| ) | const |
Returns the position corresponding to the input coordinates in this image.
| p_0 | dim 0 coordinate. |
| p_1 | dim 1 coordinate. |
| size_t Bial::Image< D >::Position | ( | size_t | p_0, |
| size_t | p_1, | ||
| size_t | p_2 | ||
| ) | const |
Returns the position corresponding to the input coordinates in this image.
| p_0 | dim 0 coordinate. |
| p_1 | dim 1 coordinate. |
| p_2 | dim 2 coordinate. |
| size_t Bial::Image< D >::Position | ( | const Vector< size_t > & | coordinates | ) | const |
Returns the position corresponding to the input coordinates in this image.
| coordinates | element coordinates. |
| size_t Bial::Image< D >::Position | ( | const Vector< int > & | coordinates | ) | const |
Returns the position corresponding to the input coordinates in this image.
| coordinates | element coordinates. |
| size_t Bial::Image< D >::Position | ( | const Vector< float > & | coordinates | ) | const |
Returns the position corresponding to the input coordinates in this image.
| coordinates | element coordinates. |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
| void Bial::Image< D >::Set | ( | D | val | ) |
Sets val to each element of the entire image.
| val | value to be set to the entire image. |
Recalculate the intensity scale of the data by the following formula: img[ pxl ] = min + ( img[ pxl ] - img_min ) * ( max - min ) / ( img_max - img_min )
| min | minimum value of the new intensity scale max: maximum value of the new intensity scale |
| size_t Bial::Image< D >::Size | ( | ) | const |
Returns the image size.
| none. |
| size_t Bial::Image< D >::size | ( | ) | const |
Returns the image size. Same as Size( ), just for compatibility with std containers.
| none. |
| size_t Bial::Image< D >::Size | ( | size_t | dms | ) | const |
Returns image dimension dms.
| dms | The required dimension. |
| size_t Bial::Image< D >::size | ( | size_t | dms | ) | const |
| bool Bial::Image< D >::ValidCoordinate | ( | const Vector< size_t > & | pxl | ) | const |
Verifies if a given pixel coordinate is in image domain.
| pxl | Coordinates of a pixel. |
| bool Bial::Image< D >::ValidCoordinate | ( | size_t | x, |
| size_t | y | ||
| ) | const |
Verifies if a given pixel coordinate is in image domain.
| x,y | Coordinates of a pixel. |
| bool Bial::Image< D >::ValidCoordinate | ( | size_t | x, |
| size_t | y, | ||
| size_t | z | ||
| ) | const |
Verifies if a given pixel coordinate is in image domain.
| x,y,z | Coordinates of a pixel. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |