Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
Adjacency relation with indexes following gray code sequency.
Future add-on's: none.
More...
Namespaces | |
AdjacencyType | |
Binary | |
Bit | |
Gray code based functions. | |
Brain | |
ColorSpace | |
Curve | |
Edge | |
FeatureResize | |
FileFeature | |
Filtering | |
Geometrics | |
Gradient | |
Computes image gradients. | |
Heart | |
Hough | |
ImageInterpolation | |
ImageOp | |
Intensity | |
Image intensity manipulation class. | |
KernelType | |
MatrixOp | |
Morphology | |
Morphological opperations over images. | |
OPF | |
SampleType | |
Segmentation | |
Image segmentation methods. | |
SignalOp | |
SignalType | |
Sorting | |
Extensions for sorting methods. | |
Statistics | |
Transform | |
Classes | |
class | Adjacency |
Adjacency relation and forward iteratior related to a matrix. More... | |
class | AdjacencyIterator |
Adjacency iterator. More... | |
class | Array |
A array that calls almost all std::array functions (C++11 standard). More... | |
class | BBox |
The BBox class is a Bounding Box with 8 vertices, and can be represented by 2 points (6coordinates). More... | |
class | Box |
Box Figure class. More... | |
class | BucketQueue |
Standard bucket queue class, that may work with both integer or real values. More... | |
class | Cell |
The Cell class is used in MarchingCubes algorithm to describe a single marching cube data. More... | |
class | ChessBoardDistanceFunction |
class | Circle |
class | CityBlockDistanceFunction |
class | ClusteringIFT |
union | Color |
class | Common |
Commonly used macros, types, static variables and functions. More... | |
class | ConnPathFunction |
class | DegeneratedIFT |
class | DFIDE |
class | DicomHeader |
class | DifferentialGeometry |
The DifferentialGeometry class is a parametric representation of the Shape geometry. More... | |
class | DiffPathFunction |
class | DiffusionFunction |
Diffusion functions to compute annisotropic filtering and other algorithms. More... | |
class | Display |
class | DistanceFunction |
class | EdgeMaxPathFunction |
class | EuclideanDistanceFunction |
class | FastTransform |
class | Feature |
Feature vector class. It is essentialy a matrix where, the first dimention refers to the feature and the other dimension to the element. More... | |
class | FeatureDistanceFunction |
class | Figure |
class | FuzzyCMeans |
class | GaussianDiffusionFunction |
class | GDCM |
class | GeodesicDistancePathFunction |
class | GeodesicRestrictionPathFunction |
class | Graph |
class | GraphAdjacency |
Graph Operator classes. Used to compute OPF. May use Knn, LSH, etc. More... | |
class | gzstreambase |
class | gzstreambuf |
class | HierarchicalGraph |
class | HierarchicalPathFunction |
struct | HoughDecreaseCompare |
Class is used to compare elements in decreasing order to sort hough circle candidates. More... | |
struct | HoughIncreaseCompare |
Class is used to compare elements in increasing order to sort hough circle candidates. More... | |
class | IdentityNode |
class | igzstream |
class | Image |
The Image class is used to handle N-Dimensional images, and has support to Read and Write image files. More... | |
class | ImageIFT |
class | InfBucketQueue |
class | Integral |
A class to handle integral image. More... | |
class | Kernel |
Kernel and forward iteratior related to a matrix. More... | |
class | KernelIterator |
class | KnnGraphAdjacency |
class | Line |
class | LinearInterpolation |
class | LocalMaxPathFunction |
class | LSHGraphAdjacency |
class | MarchingCubes |
Algorithm proposed by Lorensen and Cline to extract triangle meshes from isosurfaces. More... | |
class | Matrix |
dimensional matrix handeling. When acessed by (x, y), or (x, y, z) operator, index x corresponds to the index of the column, and index y corresponds to the index of the row. This standard comes from text printing order and image display and storage in most of the computer systems. More... | |
class | MaxPathFunction |
class | MaxSumPathFunction |
class | MinimumSpanningTree |
Minimum spanning three algorithm. More... | |
class | MinPathFunction |
class | MultiImage |
The MultiImage class may have only one of the following image types: int, float, Color, or RealColor. More... | |
class | NearestInterpolation |
class | NiftiHeader |
Magnetic Resonance Image class. More... | |
class | Normal |
The Normal class is the geometric representation of a Normal in 3D space. A surface normal (or just normal) is a vector that is perpendicular to a surface at a particular position. It can be defined as the cross product of any two nonparallel vectors that are tangent to the surface at a point. The implementations of Normal3D and Vector3D are very similar. Like vectors, normals are represented by three floats x, y, and z; they can be added and subtracted to compute new normals; and they can be scaled and normalized. However, a normal cannot be added to a point, and one cannot take the cross product of two normals. More... | |
class | ogzstream |
class | OrientedExternPathFunction |
class | OrientedInternPathFunction |
class | PathFunction |
Path function to compute the initial path-values and propagated path-values. More... | |
class | PixelInterpolation |
Geometric transforms that change image spatially. More... | |
class | Plotting |
Plotting algorithms. More... | |
class | PNMHeader |
PNM Header class. More... | |
class | Point |
class | Point3D |
The Point3D class is a Geometric representation of a point in 3D space. A point is a zerodimensional location in 3D space. More... | |
class | PowerDiffusionFunction |
class | PreEuclideanDistanceFunction |
class | RandomQueue |
A random-acess queue. Its size is fixed. As soon as it gets full, the first inserted element is automatically replaced by the next inserted element. It is useful to find the median element as walking through signal or image data, e.g. MedianFilter method of Signal class. Insertion and removal are made in limiar time with respect to the queue size. Access to ordered keys by position is made in constant time. More... | |
class | Ray |
The Ray class is a mathematic representation of a light ray. A ray is a semiinfinite line specified by its origin and direction. More... | |
class | RealColor |
Class RealColor is used to handle multi-channels in pixels with floating point values. More... | |
class | RobustDiffusionFunction |
class | Sample |
Methods for sampling elements. More... | |
class | Sequence |
class | Shape |
class | Signal |
Signal handeling declaration. More... | |
class | SquareEuclideanDistanceFunction |
class | SumPathFunction |
class | Superpixel |
class | Table |
class | TableCell |
TableCell is the data type that composes the Table class cells. More... | |
class | TableColumn |
class | TElementId |
DICOM DATA ELEMENT. More... | |
class | TGroupId |
DICOM DATA BLOCK. More... | |
class | Transform3D |
The Transform3D class holds affine matrices and is used to apply geometric transformations over cartesian coordinates. The affine transformation multiplies the coordinates vector to the affine matrix. More... | |
class | Triangle |
Simple triangle Shape, used in TriangleMesh. More... | |
class | TriangleMesh |
class | Vector |
class | Vector3D |
The Vector3D class is a Geometric representation of a vector direction in 3D space. More... | |
class | Vector< bool > |
class | WeightNode |
Functions | |
template<class O > | |
O & | operator<< (O &os, const Adjacency &adj) |
Prints the adjacency relation in a friendly way. More... | |
template<class D > | |
AdjacencyIterator | begin (const Adjacency &adj, const Vector< D > &vct, size_t pixel_index) |
returns an iterator to first valid adjacent element. More... | |
template<class D > | |
AdjacencyIterator | end (const Adjacency &adj, const Vector< D > &vct, size_t pixel_index) |
Returns an iterator to position after the end of elements. More... | |
template<class D > | |
AdjacencyIterator | begin (const Adjacency &adj, const Matrix< D > &mtx, size_t pixel_index) |
returns an iterator to first valid adjacent element. More... | |
template<class D > | |
AdjacencyIterator | end (const Adjacency &adj, const Matrix< D > &mtx, size_t pixel_index) |
Returns an iterator to position after the end of elements. More... | |
template<class D > | |
AdjacencyIterator | begin (const Adjacency &adj, const Image< D > &img, size_t pixel_index) |
returns an iterator to first valid adjacent element. More... | |
template<class D > | |
AdjacencyIterator | end (const Adjacency &adj, const Image< D > &img, size_t pixel_index) |
Returns an iterator to position after the end of elements. More... | |
template<class D , size_t S> | |
bool | operator== (const Array< D, S > &lhs, const Array< D, S > &rhs) |
Operators. More... | |
template<class D , size_t S> | |
bool | operator!= (const Array< D, S > &lhs, const Array< D, S > &rhs) |
template<class D , size_t S> | |
bool | operator< (const Array< D, S > &lhs, const Array< D, S > &rhs) |
template<class D , size_t S> | |
bool | operator<= (const Array< D, S > &lhs, const Array< D, S > &rhs) |
template<class D , size_t S> | |
bool | operator> (const Array< D, S > &lhs, const Array< D, S > &rhs) |
template<class D , size_t S> | |
bool | operator>= (const Array< D, S > &lhs, const Array< D, S > &rhs) |
template<class D , size_t S> | |
void | swap (Array< D, S > &x, Array< D, S > &y) |
template<size_t I, class D , size_t S> | |
D & | get (Array< D, S > &arr) noexcept |
Returns a reference to I'th element of the array. More... | |
template<size_t I, class D , size_t S> | |
D && | get (Array< D, S > &&arr) noexcept |
template<size_t I, class D , size_t S> | |
const D & | get (const Array< D, S > &arr) noexcept |
template<class D , size_t S, class O > | |
O & | operator<< (O &os, const Array< D, S > &vec) |
Color | operator+ (const Color &clr1, const Color &clr2) |
Computes the sum of the colors and returns the result. More... | |
Color & | operator+= (Color &clr1, const Color &clr2) |
Computes the sum of the colors, assigns the result to clr1, and returns the result. More... | |
Color | operator- (const Color &clr1, const Color &clr2) |
Computes the difference of the colors and returns the result. More... | |
Color & | operator-= (Color &clr1, const Color &clr2) |
Computes the difference between input colors, assigns the result to clr1, and returns the result. More... | |
Color | operator* (const Color &clr1, const Color &clr2) |
Computes the product of the colors and returns the result. More... | |
Color & | operator*= (Color &clr1, const Color &clr2) |
Computes the product between input colors, assigns the result to clr1, and returns the result. More... | |
Color | operator/ (const Color &clr1, const Color &clr2) |
Computes the quotient of the colors and returns the result. More... | |
Color & | operator/= (Color &clr1, const Color &clr2) |
Computes the quotient between input colors, assigns the result to clr1, and returns the result. More... | |
bool | operator== (const Color &clr1, const Color &clr2) |
Compares two colors and returns true if they are equal. More... | |
bool | operator!= (const Color &clr1, const Color &clr2) |
Compares two colors and returns true if they are different. More... | |
Color | operator+ (const Color &clr, double scalar) |
Computes the sum of the scalar to input color channel values and returns the result. More... | |
Color | operator+ (double scalar, const Color &clr) |
Color & | operator+= (Color &clr, double scalar) |
Computes the sum of the scalar to input color channel values and assigns the result to clr. More... | |
Color | operator- (const Color &clr, double scalar) |
Computes the differente between scalar and input color channel values and returns the result. More... | |
Color | operator- (double scalar, const Color &clr) |
Color & | operator-= (Color &clr, double scalar) |
Computes the difference between the scalar and input color channel values and assigns the result to clr. More... | |
Color | operator* (const Color &clr, double scalar) |
Computes the product of the scalar and input color channel values and returns the result. More... | |
Color | operator* (double scalar, const Color &clr) |
Color & | operator*= (Color &clr, double scalar) |
Computes the product of the scalar and input color channel values and assigns the result to clr. More... | |
Color | operator/ (const Color &clr, double scalar) |
Computes the quotient between the scalar and the input color channel values and returns the result. More... | |
Color | operator/ (double scalar, const Color &clr) |
Color & | operator/= (Color &clr, double scalar) |
Computes the quotient between the scalar and the input color channel values and assigns the result to clr. More... | |
template<class O > | |
O & | operator<< (O &os, const Color &clr) |
Prints the color in a friendly way. More... | |
template<class D > | |
Feature< D > | ColorFeature (const Image< Color > &src, const Adjacency &adj) |
Assings the values from the neighborhoods of each pixel from image src to a feature vector. More... | |
template<class D > | |
void | ColorFeatureThread (const Image< Color > &src, const Adjacency &adj_rel, Feature< D > &res, size_t thread, size_t total_threads) |
Multi-thread implementation of ColorFeature. More... | |
template<class D > | |
Feature< D > | ColorMedianFeature (const Image< Color > &src, const Adjacency &adj_rel, float proportion=0.6) |
Assings a median values from the neighborhoods of each pixel from image src to a feature vector. More... | |
template<class D > | |
Feature< D > | ColorMedianFeature (const Image< Color > &src, const Image< D > &msk, const Adjacency &adj_rel, float proportion=0.6) |
Assings a median values from the neighborhoods of each pixel from image src, restricted by a mask msk to a feature vector. More... | |
template<class D > | |
void | ColorMedianFeatureThread (const Image< Color > &src, const Adjacency &adj_rel, Feature< D > &res, size_t thread, size_t total_threads) |
Multi-thread implementation of ColorMedianFeature. More... | |
bool | Equals (float value, float other, float factor) |
Useful function to compare floating point numbers. More... | |
bool | Equals (double value, double other, double factor) |
float | Radians (float angle) |
Useful function to convert degrees ro radians. More... | |
double | Radians (double angle) |
float | Degrees (float rad) |
Useful function to convert radians to degrees. More... | |
double | Degrees (double rad) |
FILE * | Bial_popen (const char *command, const char *type) |
Same as popen for Linux and Apple, and _popen for Windows. More... | |
int | Bial_pclose (FILE *stream) |
Same as pclose for Linux and Apple, and _pclose for Windows. More... | |
std::string | DirectoryExistsCommand (const std::string &dirname) |
Generates a command for terminal to check if directory exists. More... | |
std::string | FileDirectoryListCommand (const std::string &dirname) |
Generates a command for terminal to list files and directories in given directory. More... | |
std::string | DirectoryListCommand (const std::string &dirname) |
Generates a command for terminal to list subdirectories in given directory. More... | |
std::string | FileListCommand (const std::string &dirname) |
Generates a command for terminal to list files in given directory. More... | |
std::string | FileListCommand (const std::string &dirname, const std::string &extension) |
Generates a command for terminal to list files in given directory with a given extension. More... | |
std::string | MakeDirCommand (const std::string &dirname) |
Generates a command for terminal to create a directory. More... | |
template<class D > | |
Image< D > | Correlation (const Image< D > &img, const Kernel &krn) |
Returns an image with correlation between img and krn. More... | |
template<class D > | |
void | CorrelationThreads (const Image< D > &img, const Kernel &krn, Image< D > &res, size_t thread, size_t total_threads) |
Multithread implementation of correlation. More... | |
template<class O > | |
O & | operator<< (O &os, const Box &obj) |
Prints object features into the output stream. More... | |
template<class O > | |
O & | operator<< (O &os, const Circle &obj) |
Prints object features into the output stream. More... | |
Vector< float > | Intersection (const Sequence &sequence, const Line &line) |
Locates the first point where the line and the sequence intersect. More... | |
Vector< float > | Intersection (const Line &line1, const Line &line2) |
Computes and returns the coordinates where lines intersect each other. More... | |
template<class O > | |
O & | operator<< (O &os, const Line &obj) |
Prints object features into the output stream. More... | |
template<class O > | |
O & | operator<< (O &os, const Point &obj) |
Prints object features into the output stream. More... | |
template<class O > | |
O & | operator<< (O &os, const Sequence &obj) |
Prints object features into the output stream. More... | |
template<class D > | |
void | SVGDGraph (const Image< D > &vertex, const Adjacency &adj, const std::string &filename) |
Writes the directed graph in SVG format into a file. More... | |
template<class D > | |
void | SVGDGraph (const Image< D > &vertex, const Vector< bool > &seed, const Adjacency &adj, const std::string &filename) |
Writes the directed graph in SVG format into a file. More... | |
template<class D > | |
void | SVGDGraph (const Image< D > &vertex, const Vector< bool > &seed, const Image< int > &label, const Adjacency &adj, const std::string &filename) |
Writes the directed graph in SVG format into a file. More... | |
template<class D > | |
void | SVGDForest (const Image< D > &cost, const Image< int > &pred, const Image< int > &label, const std::string &filename) |
Writes the directed graph in SVG format into a file. More... | |
template<class D , class O > | |
O & | operator<< (O &os, const Feature< D > &ftr) |
template<class D > | |
static void | WriteBMP (const Image< D > &img, const std::string &filename) |
Open a BMP file to write 'this' content. More... | |
template<class D > | |
void | WriteBMP (const Image< D > &img, const std::string &filename) |
Open a BMP file to write 'this' content. More... | |
template<> | |
void | WriteBMP (const Image< Color > &img, const std::string &filename) |
template<class D > | |
static Image< D > | ReadDicom (const std::string &filename) |
Open a Dicom file for reading and returns it. More... | |
template<class D > | |
Image< D > | ReadDicom (const std::string &filename) |
Open a Dicom file for reading and returns it. More... | |
template<> | |
Image< Color > | ReadDicom (const std::string &filename) |
Open a Dicom file for reading and returns it. More... | |
static bool | Supported (const std::string &filename) |
Returns true for supported images. Return false for folders. More... | |
template<class D > | |
static Image< D > | Read (const std::string &filename) |
Read an image from an input file and returns it. More... | |
template<class D > | |
static Vector< Image< D > > | ReadDir (const std::string &dirname) |
Reads all supported images contained in the directory and return them in a vector of images. More... | |
template<class D > | |
static void | Write (const Image< D > &img, const std::string &filename) |
Write the input image to a file with given name. More... | |
template<class D > | |
static void | Write (const Image< D > &img, const std::string &filename, const std::string &headername) |
Write the input image to a file with given name. Also, includes the header read from given header name. More... | |
template<class D > | |
Vector< Image< D > > | ReadDir (const std::string &dirname) |
Reads all supported images contained in the directory and return them in a vector of images. More... | |
template<class D > | |
Image< D > | Read (const std::string &filename) |
Reads data from file and initializes a Feature vector with it. More... | |
template<> | |
Image< Color > | Read (const std::string &filename) |
Reads data from file and initializes a Feature vector with it. More... | |
template<class D > | |
void | Write (const Image< D > &img, const std::string &filename) |
Write the input image to a file with given name. More... | |
template<> | |
void | Write (const Image< Color > &img, const std::string &filename) |
template<class D > | |
void | Write (const Image< D > &img, const std::string &filename, const std::string &headername) |
Write the input image to a file with given name. Also, includes the header read from given header name. More... | |
template<> | |
void | Write (const Image< Color > &img, const std::string &filename, const std::string &headername) |
template<class D > | |
static Matrix< D > | ReadMatrix (const std::string &filename) |
Reads matrix from file. More... | |
template<class D > | |
static void | Write (const Matrix< D > &mtx, const std::string &filename) |
Writes matrix into file. More... | |
template<class D > | |
static void | WriteMatrix (const Matrix< D > &mtx, const std::string &filename) |
Writes matrix into file. More... | |
template<class D > | |
Matrix< D > | ReadMatrix (const std::string &filename) |
Reads matrix from file. More... | |
template<class D > | |
void | WriteMatrix (const Matrix< D > &mtx, const std::string &filename) |
Writes matrix into file. More... | |
template<class D > | |
void | Write (const Matrix< D > &mtx, const std::string &filename) |
Writes matrix into file. More... | |
template<class D > | |
static Image< D > | ReadNifti (const std::string &filename) |
Open a Nifti file for reading and store its content in 'this'. More... | |
template<class D > | |
static void | WriteNifti (const Image< D > &img, const std::string &filename, const NiftiHeader &hdr) |
Open a Nifti file to write the content from 'this'. More... | |
template<> | |
Image< Color > | ReadNifti (const std::string &filename) |
Open a Nifti file for reading and store its content in 'this'. More... | |
template<class D > | |
Image< D > | ReadNifti (const std::string &filename) |
Open a Nifti file for reading and store its content in 'this'. More... | |
template<class D > | |
void | WriteNifti (const Image< D > &img, const std::string &filename, const NiftiHeader &hdr) |
Open a Nifti file to write the content from 'this'. More... | |
template<> | |
void | WriteNifti (const Image< Color > &img, const std::string &filename, const NiftiHeader &hdr) |
template<class D > | |
static Image< D > | ReadPBM (const std::string &filename) |
Reads a PBM file and returns its contents. More... | |
template<class D > | |
static Image< D > | ReadPGM (const std::string &filename) |
Reads a PGM file and returns its contents. More... | |
template<class D > | |
static Image< D > | ReadPPM (const std::string &filename) |
Reads a PPM file and returns its contents. More... | |
template<class D > | |
static Image< D > | ReadPNM (const std::string &filename) |
Reads a PNM file and returns its contents. More... | |
template<class D > | |
static void | WritePBM (const Image< D > &img, const std::string &filename, const PNMHeader &hdr=PNMHeader(), const bool binary=true) |
Open a PBM file to write 'this' content. More... | |
template<class D > | |
static void | WritePGM (const Image< D > &img, const std::string &filename, const PNMHeader &hdr=PNMHeader(), const bool binary=false) |
Open a PGM file to write 'this' content. More... | |
template<class D > | |
static void | WritePPM (const Image< D > &img, const std::string &filename, const PNMHeader &hdr=PNMHeader(), const bool binary=true) |
Open a PPM file to write 'this' content. More... | |
template<class D > | |
static void | WritePNM (const Image< D > &img, const std::string &filename, const PNMHeader &hdr=PNMHeader(), const bool binary=true) |
Open a PNM file to write 'this' content. More... | |
template<class D > | |
Image< D > | ReadPBM (const std::string &filename) |
Reads a PBM file and returns its contents. More... | |
template<> | |
Image< Color > | ReadPBM (const std::string &filename) |
Reads a PBM file and returns its contents. More... | |
template<class D > | |
Image< D > | ReadPGM (const std::string &filename) |
Reads a PGM file and returns its contents. More... | |
template<> | |
Image< Color > | ReadPGM (const std::string &filename) |
Reads a PGM file and returns its contents. More... | |
template<class D > | |
Image< D > | ReadPPM (const std::string &filename) |
Reads a PPM file and returns its contents. More... | |
template<> | |
Image< Color > | ReadPPM (const std::string &filename) |
Reads a PPM file and returns its contents. More... | |
template<class D > | |
Image< D > | ReadPNM (const std::string &filename) |
Reads a PNM file and returns its contents. More... | |
template<> | |
Image< Color > | ReadPNM (const std::string &filename) |
Reads a PNM file and returns its contents. More... | |
template<class D > | |
void | WritePBM (const Image< D > &img, const std::string &filename, const PNMHeader &, const bool binary) |
Open a PBM file to write 'this' content. More... | |
template<> | |
void | WritePBM (const Image< Color > &img, const std::string &filename, const PNMHeader &hdr, const bool binary) |
template<class D > | |
void | WritePGM (const Image< D > &img, const std::string &filename, const PNMHeader &, const bool binary) |
Open a PGM file to write 'this' content. More... | |
template<> | |
void | WritePGM (const Image< Color > &img, const std::string &filename, const PNMHeader &hdr, const bool binary) |
template<class D > | |
void | WritePPM (const Image< D > &img, const std::string &filename, const PNMHeader &hdr, const bool binary) |
Open a PPM file to write 'this' content. More... | |
template<> | |
void | WritePPM (const Image< Color > &img, const std::string &filename, const PNMHeader &, const bool binary) |
template<class D > | |
void | WritePNM (const Image< D > &img, const std::string &filename, const PNMHeader &hdr, const bool binary) |
Open a PNM file to write 'this' content. More... | |
template<> | |
void | WritePNM (const Image< Color > &img, const std::string &filename, const PNMHeader &hdr, const bool binary) |
template<class D > | |
static Image< D > | ReadScene (const std::string &filename) |
Open a Scene file for reading and returns it. More... | |
template<class D > | |
static void | WriteScene (const Image< D > &img, const std::string &filename) |
Open a Scene file to write 'this' content. More... | |
template<class D > | |
Image< D > | ReadScene (const std::string &filename) |
Open a Scene file for reading and returns it. More... | |
template<> | |
Image< Color > | ReadScene (const std::string &filename) |
Open a Scene file for reading and returns it. More... | |
template<class D > | |
void | WriteScene (const Image< D > &img, const std::string &filename) |
Open a Scene file to write 'this' content. More... | |
template<> | |
void | WriteScene (const Image< Color > &img, const std::string &filename) |
void | Write (const Signal &sgn, const std::string &filename) |
Writes signal containts file. It writes a pair composed by frequency and value per line. More... | |
double | Lerp (double t, double v1, double v2) |
Simple linear interpolation. More... | |
Vector3D | operator* (double s, const Vector3D &vec) |
Point3D | operator* (double s, const Point3D &p) |
Normal | operator* (double s, const Normal &norm) |
double | Dot (const Vector3D &v1, const Vector3D &v2) |
double | Dot (const Normal &n1, const Normal &n2) |
double | Dot (const Normal &n1, const Vector3D &v2) |
double | Dot (const Vector3D &v1, const Normal &n2) |
double | AbsDot (const Vector3D &v1, const Vector3D &v2) |
double | AbsDot (const Normal &n1, const Normal &n2) |
double | AbsDot (const Normal &n1, const Vector3D &v2) |
double | AbsDot (const Vector3D &v1, const Normal &n2) |
Vector3D | Cross (const Vector3D &v1, const Vector3D &v2) |
void | CoordinateSystem (const Vector3D &v1, Vector3D *v2, Vector3D *v3) |
double | Distance (const Point3D &p1, const Point3D &p2) |
double | DistanceSquared (const Point3D &p1, const Point3D &p2) |
Normal | FaceForward (const Normal &n, const Vector3D &v) |
template<class O > | |
O & | operator<< (O &os, const Vector3D &vec) |
template<class O > | |
O & | operator<< (O &os, const Point3D &pt) |
template<class O > | |
O & | operator<< (O &os, const Normal &norm) |
template<class O > | |
O & | operator<< (O &os, const Ray &ray) |
template<class O > | |
O & | operator<< (O &os, const BBox &box) |
template<class O > | |
O & | operator<< (O &os, const Transform3D &tr) |
template<class D , class O > | |
O & | operator<< (O &os, const Image< D > &img) |
Prints the image in a friendly way. More... | |
template<class D > | |
Image< D > | operator+ (const Image< D > &img1, const Image< D > &img2) |
Computes the sum of the images and returns the result. More... | |
template<class D > | |
Image< D > & | operator+= (Image< D > &img1, const Image< D > &img2) |
Computes the sum of the images, assigns the result to img1, and returns the result. More... | |
template<class D > | |
Image< D > | operator- (const Image< D > &img1, const Image< D > &img2) |
Computes the difference of the images and returns the result. More... | |
template<class D > | |
Image< D > & | operator-= (Image< D > &img1, const Image< D > &img2) |
Computes the difference between input images, assigns the result to img1, and returns the result. More... | |
template<class D > | |
Image< D > | operator* (const Image< D > &img1, const Image< D > &img2) |
Computes the product of the images and returns the result. More... | |
template<class D > | |
Image< D > & | operator*= (Image< D > &img1, const Image< D > &img2) |
Computes the product between input images, assigns the result to img1, and returns the result. More... | |
template<class D > | |
Image< D > | operator/ (const Image< D > &img1, const Image< D > &img2) |
Computes the quotient of the images and returns the result. More... | |
template<class D > | |
Image< D > & | operator/= (Image< D > &img1, const Image< D > &img2) |
Computes the quotient between input images, assigns the result to img1, and returns the result. More... | |
template<class D > | |
Image< D > | operator+ (const Image< D > &img, double scalar) |
Computes the sum of the scalar to input image pixel values and returns the result. More... | |
template<class D > | |
Image< D > | operator+ (double scalar, const Image< D > &img) |
template<class D > | |
Image< D > & | operator+= (Image< D > &img, double scalar) |
Computes the sum of the scalar to input image pixel values and assigns the result to img. More... | |
template<class D > | |
Image< D > | operator- (const Image< D > &img, double scalar) |
Computes the differente between scalar and input image pixel values and returns the result. More... | |
template<class D > | |
Image< D > | operator- (double scalar, const Image< D > &img) |
template<class D > | |
Image< D > & | operator-= (Image< D > &img, double scalar) |
Computes the difference between the scalar and input image pixel values and assigns the result to img. More... | |
template<class D > | |
Image< D > | operator* (const Image< D > &img, double scalar) |
Computes the product of the scalar and input image pixel values and returns the result. More... | |
template<class D > | |
Image< D > | operator* (double scalar, const Image< D > &img) |
template<class D > | |
Image< D > & | operator*= (Image< D > &img, double scalar) |
Computes the product of the scalar and input image pixel values and assigns the result to img. More... | |
template<class D > | |
Image< D > | operator/ (const Image< D > &img, double scalar) |
Computes the quotient between the scalar and the input image pixel values and returns the result. More... | |
template<class D > | |
Image< D > | operator/ (double scalar, const Image< D > &img) |
template<class D > | |
Image< D > & | operator/= (Image< D > &img, double scalar) |
Computes the quotient between the scalar and the input image pixel values and assigns the result to img. More... | |
template<class D > | |
Image< D > | Abs (const Image< D > &img) |
Computes the absolute value of image pixel values as return an image with the result. More... | |
template<class O > | |
O & | operator<< (O &os, const Kernel &knl) |
template<class D , class O > | |
O & | operator<< (O &os, const Matrix< D > &mat) |
Prints the matrix in a friendly way. More... | |
template<class D > | |
Feature< D > | MedianFeature (const Matrix< D > &src, const Adjacency &adj, float proportion=0.6) |
Assings a median values from the neighborhoods of each pixel from matrix src to a feature vector. More... | |
template<class D > | |
Feature< D > | MedianFeature (const Matrix< D > &src, const Matrix< D > &msk, const Adjacency &adj, float proportion=0.6) |
Assings a median values from the neighborhoods of each pixel from matrix src, restricted by a mask msk to a feature vector. More... | |
template<class D > | |
void | MedianFeatureThread (const Matrix< D > &src, const Adjacency &adj_rel, Feature< D > &res, size_t thread, size_t total_threads) |
Multi-thread implementation of MedianFeature. More... | |
template<class D > | |
Feature< D > | MedianFeature (const Image< D > &src, const Adjacency &adj, float proportion=0.6) |
Assings a median values from the neighborhoods of each pixel from image src to a feature vector. More... | |
template<class D > | |
Feature< D > | MedianFeature (const Image< D > &src, const Image< D > &msk, const Adjacency &adj, float proportion=0.6) |
Assings a median values from the neighborhoods of each pixel from image src, restricted by a mask msk to a feature vector. More... | |
template<class O > | |
O & | operator<< (O &os, const NiftiHeader &hdr) |
Prints the header in a friendly way. More... | |
template<class O > | |
O & | operator<< (O &os, NiftiHeader &hdr) |
RealColor | operator+ (const RealColor &clr1, const RealColor &clr2) |
Computes the sum of the colors and returns the result. More... | |
RealColor & | operator+= (RealColor &clr1, const RealColor &clr2) |
Computes the sum of the colors, assigns the result to clr1, and returns the result. More... | |
RealColor | operator- (const RealColor &clr1, const RealColor &clr2) |
Computes the difference of the colors and returns the result. More... | |
RealColor & | operator-= (RealColor &clr1, const RealColor &clr2) |
Computes the difference between input colors, assigns the result to clr1, and returns the result. More... | |
RealColor | operator* (const RealColor &clr1, const RealColor &clr2) |
Computes the product of the colors and returns the result. More... | |
RealColor & | operator*= (RealColor &clr1, const RealColor &clr2) |
Computes the product between input colors, assigns the result to clr1, and returns the result. More... | |
RealColor | operator/ (const RealColor &clr1, const RealColor &clr2) |
Computes the quotient of the colors and returns the result. More... | |
RealColor & | operator/= (RealColor &clr1, const RealColor &clr2) |
Computes the quotient between input colors, assigns the result to clr1, and returns the result. More... | |
bool | operator== (const RealColor &clr1, const RealColor &clr2) |
Compares two colors and returns true if they are equal. More... | |
bool | operator!= (const RealColor &clr1, const RealColor &clr2) |
Compares two colors and returns true if they are different. More... | |
RealColor | operator+ (const RealColor &clr, double scalar) |
Computes the sum of the scalar to input color channel values and returns the result. More... | |
RealColor | operator+ (double scalar, const RealColor &clr) |
RealColor & | operator+= (RealColor &clr, double scalar) |
Computes the sum of the scalar to input color channel values and assigns the result to clr. More... | |
RealColor | operator- (const RealColor &clr, double scalar) |
Computes the differente between scalar and input color channel values and returns the result. More... | |
RealColor | operator- (double scalar, const RealColor &clr) |
RealColor & | operator-= (RealColor &clr, double scalar) |
Computes the difference between the scalar and input color channel values and assigns the result to clr. More... | |
RealColor | operator* (const RealColor &clr, double scalar) |
Computes the product of the scalar and input color channel values and returns the result. More... | |
RealColor | operator* (double scalar, const RealColor &clr) |
RealColor & | operator*= (RealColor &clr, double scalar) |
Computes the product of the scalar and input color channel values and assigns the result to clr. More... | |
RealColor | operator/ (const RealColor &clr, double scalar) |
Computes the quotient between the scalar and the input color channel values and returns the result. More... | |
RealColor | operator/ (double scalar, const RealColor &clr) |
RealColor & | operator/= (RealColor &clr, double scalar) |
Computes the quotient between the scalar and the input color channel values and assigns the result to clr. More... | |
template<class O > | |
O & | operator<< (O &os, const RealColor &clr) |
Prints the color in a friendly way. More... | |
template<class O > | |
O & | operator<< (O &os, const Signal &sig) |
template<class D > | |
Feature< D > | SpatialFeature (const Matrix< D > &src) |
Features are the coordinates of non-zero samples in src matrix. More... | |
template<class D > | |
Feature< D > | SpatialFeature (const Image< D > &src) |
Features are the coordinates of non-zero samples in src image. More... | |
template<class O > | |
O & | operator<< (O &os, const Table &tbl) |
template<class D > | |
bool | operator== (const Vector< D > &lhs, const Vector< D > &rhs) |
Operators. More... | |
template<class D > | |
bool | operator!= (const Vector< D > &lhs, const Vector< D > &rhs) |
template<class D > | |
bool | operator< (const Vector< D > &lhs, const Vector< D > &rhs) |
template<class D > | |
bool | operator<= (const Vector< D > &lhs, const Vector< D > &rhs) |
template<class D > | |
bool | operator> (const Vector< D > &lhs, const Vector< D > &rhs) |
template<class D > | |
bool | operator>= (const Vector< D > &lhs, const Vector< D > &rhs) |
template<class D > | |
void | swap (Vector< D > &x, Vector< D > &y) |
template<class D , class O > | |
O & | operator<< (O &os, const Vector< D > &vec) |
Variables | |
int | verbose |
Determines the COMMENT macro verbosity. More... | |
const double | Pi = std::atan( 1.0 ) * 4.0 |
Adjacency relation with indexes following gray code sequency.
Future add-on's: none.
Inverse Euclidean distance transform.
Euclidean Distance Transform.
Table class. 2 dimensional table handeling. When acessed by (x, y) operator, index x corresponds to the index of the column, and index y corresponds to the index of the row. This standard comes from text printing order and image display and storage in most of the computer systems.
BIAL_Superpixel class. Functions to call SLIC superpixel routines.
Sum path function to compute the initial path-values and propagated path-values in IFT algorithm. Used by live-wire.
Intensity standard deviation.
Basic true and false positive and negative metrics.
Observed agreement metric.
Median absolute deviation computation.
Kappa metric.
Jaccard metric.
Dice metric.
Baddeley metric.
Average image intensity.
Feature vector composed by the coordinates of valid the matrix/image elements/pixels. Valid elements/pixels have non-zero value/intensity.
Sorting algorithm that outputs the order of the original indexes after sorting.
binary search in sorted vector.
Computes otsu threshold of signals signal.
Signal normalization.
Computes median filter over the signal.
Functions to locate key points in signal such as peaks, acclivities, plateaus, etc.
Functions to compute signal hysteresis.
Signal equalization functions.
Functions to deal with empty bins in a signal. Useful to locate key points.
Computes the accumulated signal.
Signal handeling.
: Segmentation with watershed algorithm.
: Segmentation of 3D surface.
: Segmentation of a 2D image in quadrants.
: Segmentation by Otsu thresholding.
: Segmentation of 3D image into octants.
: Segmentation with minimum spanning tree.
: Segmentation by intensity thresholding.
: Segmentation by intensity hysteresis.
: Segmentation with oriented geodesic star algorithm. Combines geodesic distance and sum of arcs with orientation.
Find the connected components and select some among them.
: Segmentation of object border.
: Image background segmentation. Segments a large piece of dark pixels in the background.
Functions to sample uniformly from feature vector.
Random sampling elements from feature vector.
Methods for sampling elements.
Colorspace convertion methods. For real value color spaces.
Plotting algorithms. Plots in GnuPlot format.
Class for interpolation of pixels.
Path function to compute the initial path-values and propagated path-values in IFT algorithm.
Oriented intern Path function to compute the initial path-values and propagated path-values in IFT algorithm. Function for image segmentation with geodesic star distance. Result is normaly based on label map.
Oriented external path function to compute the initial path-values and propagated path-values in IFT algorithm. Function for image segmentation with geodesic star distance. Result is normaly based on label map.
OPF spectral clustering algorithms.
OPF spatial clustering algorithms.
OPF hierarchical clustering algorithms. NOT WORKING YET.
OPF cluster matching verification algorithms.
class used to discriminate MRI modality.
Morphological erosion over images.
Morphological dilation over images.
Min Path function to compute the initial path-values and propagated path-values in IFT algorithm. Function for segmentation. This implements OPF transforms.
Feature vector extracted from image. Gets the median intensity pixels around each valid pixel. A feature vector is generated from each valid pixel.
Max sum path function to compute the initial path-values and propagated path-values in IFT algorithm. This function is has a mixed behavior of maximum and sum path functions. It may adopt a direction.
Max Path function to compute the initial path-values and propagated path-values in IFT algorithm. Functions used by Watershed transform.
Compute the matrix transpose.
Functions to compute polar matrix.
Functions to compute matrix inverse.
Set matrix to identity or computer distance from identity.
Compute matrix determinant.
N dimensional matrix handeling. When acessed by (x, y), or (x, y, z) operator, index x corresponds to the index of the column, and index y corresponds to the index of the row. This standard comes from text printing order and image display and storage in most of the computer systems.
Local Max Path function to compute the initial path-values and propagated path-values in IFT algorithm. Used by River Bed algorithm.
Sobel kernel generator.
Round kernel generator.
Kernel iterator class.
Gaussian kernel generator.
Gabor kernel generator.
Box kernel generator.
Kernel class.
Functions to compute intensity local minima or maxima.
Image intensity manipulation functions.
Integral image construction and properties.
Image swap dimensions.
Image splitting.
Image region of interest. Minimal sub image coordinates without zero frame.
Operations to get sub-matrix.
Image merging.
Image interpolation using interpolation functions.
IFT algorithm running on Images.
Image add/remove frame.
Algorithms to check if tow images have the same dimensions and containts.
Image class declaration. Handles 2D and 3D images.
Hough transform for circles.
Creating histograms from data.
Hierarchical path function to compute the initial path-values and propagated path-values in IFT algorithm. Function used by optimum path forest clustering and classification for hierarchical implementation. Result is normaly in label map. NOT READY. DO NOT USE.
Heart segmentation functions.
Heart center of gravity estimation.
Abstract class to define graph adjacencies.
Computes sobel gradient.
Computes multiscale Canny gradient.
Operations to be executed after defining the gradient.
Computes morphological gradient, that is, open - close.
Computes Gabor gradient.
Computes directional gradient. This gradient is the contribution of the intensity differences from all adjacents.
Computes Canny gradient.
Geodesic restriction sum path function to compute the initial path-values and propagated path-values in IFT algorithm. This function is used to compute predecessor map for Geodesic Star Functions.
Image translation. Direct translation or corresponding affine transform.
Image shear. Direct shear or corresponding affine transform.
Image scaling. Direct scaling or corresponding affine transform.
Image rotation. Direct retation around coordinate system origin or corresponding affine transform.
Affine transformation.
Geometric transforms for 3D visualization and printing.
Geodesic distance path function to compute the initial path-values and propagated path-values in IFT algorithm. Used to compute the distance from a set of pixels to the rest of the image.
Image filtering methods.
Median filter.
Mean filter.
Gaussian filter.
Anisotropic diffusion filtering to remove high-frequency noise.
Functions to write signal into file.
Reading and writing scene type images.
Reading and writing from PNM, PBM, PGM, and PNM files.
Reading and writing support for Nifti files.
Reading and writing matrices.
Functions to read and write generic files and multiple files from directory.
Functions for Feature I/O.
Reading dicom files.
Writing to BMP gray images.
Functions to merge feature vectors.
Feature distance path function to compute the initial path-values and propagated path-values in IFT algorithm. Function for classification of classifiers results. Result is both in value (probabilities) and label maps.
Feature vector class. It is essentialy a matrix where, the first dimention refers to the feature and the other dimension to the element. Example: Using constructor Feature( 4, 4 ) the vector will be allocated as follows: f_0_0, f_0_1, f_0_2, f_0_3, f_1_0, f_1_1, ..., where f_i_j is the feature i of sample j.
Edge detection with Riverbed algorithm.
Edge Max Path function to compute the initial path-values and propagated path-values in IFT algorithm. Function used by optimum path foresting clustering and classification. Result is normaly in label map.
Edge detection with Livewire algorithm.
Edge detection with LazyWalk algorithm.
Functions to draw graphs in SVG file format.
Functions to draw forms in images.
Functions to draw points in images.
Functions to draw lines in images.
Functions to find intersection between forms.
'Virtual' class to draw forms in images.
Functions to draw circles in images.
Diffusion functions to compute annisotropic filtering and other algorithms.
Diff path function to compute the initial path-values and propagated path-values in IFT algorithm. Used by live-wire.
Degenerated IFT algorithm. Used for segmentation by MST method.
Image correlation.
Connected components path function to compute the initial path-values and propagated path-values in IFT algorithm. Function to label connected components in image. Result comes normaly from label map.
The Bial namespace holds all library functions.
RGB color space convertion methods.
Generates a feature vector composed by red, green, and blue median colors in the adjacency of pixels as the features. A vector is generated for each valid pixel.
CIELab color space convertion methods.
HSI color space convertion methods.
Generates a feature vector composed by red, green, and blue colors as the features. A vector is generated for each valid pixel.
Operations over color channels.
Colorspace convertion methods. For integer colors.
IFT algorithm for clustering purposes.
B-Spline implementation.
Functions to segment brain tissues into GM/WM/CSF.
Functions to strip the skull from the brain image.
Class for computing brain histogram based intensities, such as peaks, valleys, mean, minimum, and maximum.
Functions to estimate and correct inhomogeneity.
Functions to find the COG of a brain image.
Bit wise opperations over integer numbers.
Computes the complement of a binary image restricted or not to a mask.
Adjacency relation with round format.
Future add-on's: none.
Adjacency relation for marching cubes algorithm.
Future add-on's: none.
Adjacency iterator class used as a forward iteratior for adjacency relation.
Future add-on's: none.
|
strong |
Enumerator | |
---|---|
NOT_VISITED | |
INSERTED | |
UPDATED | |
REMOVED |
Definition at line 28 of file BucketQueueElements.hpp.
|
strong |
|
strong |
|
strong |
The MultiImageType class is used to identify which image type is open in MultiImage.
Enumerator | |
---|---|
none | |
int_img | |
flt_img | |
clr_img | |
rcl_img |
Definition at line 23 of file MultiImage.hpp.
|
strong |
NIFTI1_INTENT: nifti1 intent codes, to describe intended meaning of dataset contents.
Definition at line 54 of file NiftiHeader.hpp.
|
strong |
NIFTI1_SLICE_ORDER: nifti1 slice order codes, describing the acquisition order of the slices.
Enumerator | |
---|---|
UNKNOWN | |
SEQ_INC | |
SEQ_DEC | |
ALT_INC | |
ALT_DEC | |
ALT_INC2 | |
ALT_DEC2 |
Definition at line 235 of file NiftiHeader.hpp.
|
strong |
Enumerator | |
---|---|
UINT8 | |
INT16 | |
INT32 | |
FLOAT32 | |
FLOAT64 | |
INT8 | |
UINT16 | |
UINT32 | |
INT64 | |
UINT64 |
Definition at line 40 of file NiftiHeader.hpp.
|
strong |
NIFTI1_UNITS: nifti1 units codes to describe the unit of measurement for each dimension of the dataset.
Enumerator | |
---|---|
UNKNOWN | |
METER | |
MM | |
MICRON | |
SEC | |
MSEC | |
USEC | |
HZ | |
PPM | |
RADS |
Definition at line 221 of file NiftiHeader.hpp.
|
strong |
NIFTI1_XFORM_CODES: nifti1 xform codes to describe the "standard" x,y,z coordinate system.
Enumerator | |
---|---|
UNKNOWN | |
SCANNER_ANAT | |
ALIGNED_ANAT | |
TALAIRACH | |
MNI_152 |
Definition at line 212 of file NiftiHeader.hpp.
|
strong |
Computes the absolute value of image pixel values as return an image with the result.
img | input image. |
AdjacencyIterator Bial::begin | ( | const Adjacency & | adj, |
const Vector< D > & | vct, | ||
size_t | pixel_index | ||
) |
returns an iterator to first valid adjacent element.
adj | An adjacency relation. |
vct | A vector with the dimensions of the image or matrix. |
pixel_index | The pixel for which the adjacents must be looked to. |
AdjacencyIterator Bial::begin | ( | const Adjacency & | adj, |
const Matrix< D > & | mtx, | ||
size_t | pixel_index | ||
) |
returns an iterator to first valid adjacent element.
adj | An adjacency relation. |
mtx | A matrix for data dimensions. |
pixel_index | The pixel for which the adjacents must be looked to. |
AdjacencyIterator Bial::begin | ( | const Adjacency & | adj, |
const Image< D > & | img, | ||
size_t | pixel_index | ||
) |
returns an iterator to first valid adjacent element.
adj | An adjacency relation. |
img | A matrix for data dimensions. |
pixel_index | The pixel for which the adjacents must be looked to. |
Feature< D > Bial::ColorFeature | ( | const Image< Color > & | src, |
const Adjacency & | adj | ||
) |
Assings the values from the neighborhoods of each pixel from image src to a feature vector.
src | Input source image to extract features. |
adj | Adjacency relation of each pixel. |
void Bial::ColorFeatureThread | ( | const Image< Color > & | src, |
const Adjacency & | adj_rel, | ||
Feature< D > & | res, | ||
size_t | thread, | ||
size_t | total_threads | ||
) |
Multi-thread implementation of ColorFeature.
src | Input source image to extract features. |
adj_rel | Adjacency relation of each pixel. |
res | Resulting feature vector. |
thread | Thread number. |
total_threads | Number of threads. |
Feature< D > Bial::ColorMedianFeature | ( | const Image< Color > & | src, |
const Adjacency & | adj_rel, | ||
float | proportion = 0.6 |
||
) |
Assings a median values from the neighborhoods of each pixel from image src to a feature vector.
src | Input source image to extract features. |
adj_rel | Adjacency relation of each pixel. |
proportion | Proportion of the pixels in adj to be taken. In ]0.0,1.0]. |
Feature< D > Bial::ColorMedianFeature | ( | const Image< Color > & | src, |
const Image< D > & | msk, | ||
const Adjacency & | adj_rel, | ||
float | proportion = 0.6 |
||
) |
Assings a median values from the neighborhoods of each pixel from image src, restricted by a mask msk to a feature vector.
src | Input source image to extract features. |
msk | Input mask image that restricts the extracting feature pixels. |
adj_rel | Adjacency relation of each pixel. |
proportion | Proportion of the pixels in adj to be taken. In ]0.0,1.0]. |
void Bial::ColorMedianFeatureThread | ( | const Image< Color > & | src, |
const Adjacency & | adj_rel, | ||
Feature< D > & | res, | ||
size_t | thread, | ||
size_t | total_threads | ||
) |
Multi-thread implementation of ColorMedianFeature.
src | Input source image to extract features. |
adj_rel | Adjacency relation of each pixel. |
res | Resulting feature vector. |
thread | Thread number. |
total_threads | Number of threads. |
Returns an image with correlation between img and krn.
img | Input image. |
krn | A kernel. |
void Bial::CorrelationThreads | ( | const Image< D > & | img, |
const Kernel & | krn, | ||
Image< D > & | res, | ||
size_t | thread, | ||
size_t | total_threads | ||
) |
Multithread implementation of correlation.
img | Input image. |
krn | A kernel. |
res | Resulting image. |
thread | number of the thread. |
total_threads | total number of threads. |
AdjacencyIterator Bial::end | ( | const Adjacency & | adj, |
const Vector< D > & | vct, | ||
size_t | pixel_index | ||
) |
Returns an iterator to position after the end of elements.
adj | An adjacency relation. |
vct | A vector with the dimensions of the image or matrix. |
pixel_index | The pixel for which the adjacents must be looked to. |
AdjacencyIterator Bial::end | ( | const Adjacency & | adj, |
const Matrix< D > & | mtx, | ||
size_t | pixel_index | ||
) |
Returns an iterator to position after the end of elements.
adj | An adjacency relation. |
mtx | A matrix for data dimensions. |
pixel_index | The pixel for which the adjacents must be looked to. |
AdjacencyIterator Bial::end | ( | const Adjacency & | adj, |
const Image< D > & | img, | ||
size_t | pixel_index | ||
) |
Returns an iterator to position after the end of elements.
adj | An adjacency relation. |
img | A matrix for data dimensions. |
pixel_index | The pixel for which the adjacents must be looked to. |
|
noexcept |
|
noexcept |
Locates the first point where the line and the sequence intersect.
sequence | A sequence. |
line | Pixels of a line. |
Computes and returns the coordinates where lines intersect each other.
line1,line2 | Lines to be checked for intersection. |
Feature< D > Bial::MedianFeature | ( | const Matrix< D > & | src, |
const Adjacency & | adj, | ||
float | proportion = 0.6 |
||
) |
Assings a median values from the neighborhoods of each pixel from matrix src to a feature vector.
src | Input source matrix to extract features. |
adj | Adjacency relation of each pixel. |
proportion | Proportion of the pixels in adj to be taken. In ]0.0,1.0]. |
Feature< D > Bial::MedianFeature | ( | const Matrix< D > & | src, |
const Matrix< D > & | msk, | ||
const Adjacency & | adj, | ||
float | proportion = 0.6 |
||
) |
Assings a median values from the neighborhoods of each pixel from matrix src, restricted by a mask msk to a feature vector.
src | Input source matrix to extract features. |
msk | Input mask matrix that restricts the extracting feature pixels. |
adj | Adjacency relation of each pixel. |
proportion | Proportion of the pixels in adj to be taken. In ]0.0,1.0]. |
Feature< D > Bial::MedianFeature | ( | const Image< D > & | src, |
const Adjacency & | adj, | ||
float | proportion = 0.6 |
||
) |
Assings a median values from the neighborhoods of each pixel from image src to a feature vector.
src | Input source image to extract features. |
adj | Adjacency relation of each pixel. |
proportion | Proportion of the pixels in adj to be taken. In ]0.0,1.0]. |
Feature< D > Bial::MedianFeature | ( | const Image< D > & | src, |
const Image< D > & | msk, | ||
const Adjacency & | adj, | ||
float | proportion = 0.6 |
||
) |
Assings a median values from the neighborhoods of each pixel from image src, restricted by a mask msk to a feature vector.
src | Input source image to extract features. |
msk | Input mask image that restricts the extracting feature pixels. |
adj | Adjacency relation of each pixel. |
proportion | Proportion of the pixels in adj to be taken. In ]0.0,1.0]. |
void Bial::MedianFeatureThread | ( | const Matrix< D > & | src, |
const Adjacency & | adj_rel, | ||
Feature< D > & | res, | ||
size_t | thread, | ||
size_t | total_threads | ||
) |
Multi-thread implementation of MedianFeature.
src | Input source matrix to extract features. |
adj_rel | Adjacency relation of each pixel. |
res | Resulting feature vector. |
thread | Thread number. |
total_threads | Number of threads. |
Compares two colors and returns true if they are different.
other | Other color. |
Compares two colors and returns true if they are different.
other | Other color. |
Definition at line 4004 of file Vector.hpp.
Computes the product of the colors and returns the result.
clr1,clr2 | Input colors. |
Computes the product of the colors and returns the result.
clr1,clr2 | Input colors. |
Computes the product of the scalar and input color channel values and returns the result.
scalar | a scalar. |
clr | Input color. |
Computes the product of the scalar and input color channel values and returns the result.
scalar | a scalar. |
clr | Input color. |
Computes the product of the images and returns the result.
img1,img2 | Input images. |
Computes the product of the scalar and input image pixel values and returns the result.
scalar | a scalar. |
img | Input image. |
Computes the product between input colors, assigns the result to clr1, and returns the result.
other | Other color. |
Computes the product between input colors, assigns the result to clr1, and returns the result.
other | Other color. |
Computes the product of the scalar and input color channel values and assigns the result to clr.
scalar | a scalar. |
clr | Input color. |
Computes the product of the scalar and input color channel values and assigns the result to clr.
scalar | a scalar. |
clr | Input color. |
Computes the product between input images, assigns the result to img1, and returns the result.
other | Other image. |
Computes the product of the scalar and input image pixel values and assigns the result to img.
scalar | a scalar. |
img | Input image. |
Computes the sum of the colors and returns the result.
clr1,clr2 | Input colors. |
Computes the sum of the colors and returns the result.
clr1,clr2 | Input colors. |
Computes the sum of the scalar to input color channel values and returns the result.
scalar | a scalar. |
clr | Input color. |
Computes the sum of the scalar to input color channel values and returns the result.
scalar | a scalar. |
clr | Input color. |
Computes the sum of the images and returns the result.
img1,img2 | Input images. |
Computes the sum of the scalar to input image pixel values and returns the result.
scalar | a scalar. |
img | Input image. |
Computes the sum of the colors, assigns the result to clr1, and returns the result.
clr1,clr2 | Input colors. |
Computes the sum of the colors, assigns the result to clr1, and returns the result.
clr1,clr2 | Input colors. |
Computes the sum of the scalar to input color channel values and assigns the result to clr.
scalar | a scalar. |
clr | Input color. |
Computes the sum of the scalar to input color channel values and assigns the result to clr.
scalar | a scalar. |
clr | Input color. |
Computes the sum of the images, assigns the result to img1, and returns the result.
img1,img2 | Input images. |
Computes the sum of the scalar to input image pixel values and assigns the result to img.
scalar | a scalar. |
img | Input image. |
Computes the difference of the colors and returns the result.
clr1,clr2 | Input colors. |
Computes the difference of the colors and returns the result.
clr1,clr2 | Input colors. |
Computes the differente between scalar and input color channel values and returns the result.
scalar | a scalar. |
clr | Input color. |
Computes the differente between scalar and input color channel values and returns the result.
scalar | a scalar. |
clr | Input color. |
Computes the difference of the images and returns the result.
img1,img2 | Input images. |
Computes the differente between scalar and input image pixel values and returns the result.
scalar | a scalar. |
img | Input image. |
Computes the difference between input colors, assigns the result to clr1, and returns the result.
other | Other color. |
Computes the difference between input colors, assigns the result to clr1, and returns the result.
other | Other color. |
Computes the difference between the scalar and input color channel values and assigns the result to clr.
scalar | a scalar. |
clr | Input color. |
Computes the difference between the scalar and input color channel values and assigns the result to clr.
scalar | a scalar. |
clr | Input color. |
Computes the difference between input images, assigns the result to img1, and returns the result.
other | Other image. |
Computes the difference between the scalar and input image pixel values and assigns the result to img.
scalar | a scalar. |
img | Input image. |
Computes the quotient of the colors and returns the result.
clr1,clr2 | Input colors. |
Computes the quotient of the colors and returns the result.
clr1,clr2 | Input colors. |
Computes the quotient between the scalar and the input color channel values and returns the result.
scalar | a scalar. |
clr | Input color. |
Computes the quotient between the scalar and the input color channel values and returns the result.
scalar | a scalar. |
clr | Input color. |
Computes the quotient of the images and returns the result.
img1,img2 | Input images. |
Computes the quotient between the scalar and the input image pixel values and returns the result.
scalar | a scalar. |
img | Input image. |
Computes the quotient between input colors, assigns the result to clr1, and returns the result.
other | Other color. |
Computes the quotient between input colors, assigns the result to clr1, and returns the result.
other | Other color. |
Computes the quotient between the scalar and the input color channel values and assigns the result to clr.
scalar | a scalar. |
clr | Input color. |
Computes the quotient between the scalar and the input color channel values and assigns the result to clr.
scalar | a scalar. |
clr | Input color. |
Computes the quotient between input images, assigns the result to img1, and returns the result.
other | Other image. |
Computes the quotient between the scalar and the input image pixel values and assigns the result to img.
scalar | a scalar. |
img | Input image. |
Definition at line 4031 of file Vector.hpp.
Prints object features into the output stream.
os | An output stream class. |
obj | The object to be written into the output stream. |
Prints object features into the output stream.
os | An output stream class. |
obj | The object to be written into the output stream. |
Prints object features into the output stream.
os | An output stream class. |
obj | The object to be written into the output stream. |
Prints object features into the output stream.
os | An output stream class. |
obj | The object to be written into the output stream. |
Prints object features into the output stream.
os | An output stream class. |
obj | The object to be written into the output stream. |
Definition at line 294 of file Feature.hpp.
Prints the color in a friendly way.
os | output stream. clr: A color. |
Definition at line 336 of file RealColor.hpp.
Definition at line 377 of file Signal.hpp.
Prints the adjacency relation in a friendly way.
os | output stream. |
adj | an adjacency relation. |
O& Bial::operator<< | ( | O & | os, |
const NiftiHeader & | hdr | ||
) |
Prints the header in a friendly way.
os | output stream. hdr: a nifti header. |
O& Bial::operator<< | ( | O & | os, |
NiftiHeader & | hdr | ||
) |
Definition at line 822 of file NiftiHeader.hpp.
Definition at line 861 of file Vector.hpp.
Prints the matrix in a friendly way.
os | output stream. |
mat | a matrix. |
Definition at line 1132 of file Matrix.hpp.
Definition at line 4058 of file Vector.hpp.
Compares two colors and returns true if they are equal.
other | Other color. |
Compares two colors and returns true if they are equal.
other | Other color. |
Operators.
lhs | left vector. |
rhs | right vector. |
Definition at line 3977 of file Vector.hpp.
Definition at line 4085 of file Vector.hpp.
Definition at line 4112 of file Vector.hpp.
Read an image from an input file and returns it.
filename | Source file to be readed. |
Read an image from an input file and returns it.
filename | Name of input file with .opf extension. |
Definition at line 170 of file FileImage.hpp.
Reads data from file and initializes a Feature vector with it.
Read an image from an input file and returns it.
filename | Name of input file with .opf extension. |
Definition at line 170 of file FileImage.hpp.
Reads data from file and initializes a Feature vector with it.
Read an image from an input file and returns it.
filename | Name of input file with .opf extension. |
Definition at line 228 of file FileImage.hpp.
Open a Dicom file for reading and returns it.
filename | Source filename to be readed. |
Definition at line 40 of file FileDicom.hpp.
Open a Dicom file for reading and returns it.
filename | Source filename to be readed. |
Definition at line 40 of file FileDicom.hpp.
Open a Dicom file for reading and returns it.
filename | Source filename to be readed. |
Definition at line 64 of file FileDicom.hpp.
Reads all supported images contained in the directory and return them in a vector of images.
dirname | Source directory. |
Definition at line 135 of file FileImage.hpp.
Reads all supported images contained in the directory and return them in a vector of images.
dirname | Source directory. |
Definition at line 135 of file FileImage.hpp.
Reads matrix from file.
filename | Name of the file conatining matrix. |
Definition at line 61 of file FileMatrix.hpp.
Reads matrix from file.
filename | Name of the file conatining matrix. |
Definition at line 61 of file FileMatrix.hpp.
Open a Nifti file for reading and store its content in 'this'.
filename | Source filename to be readed. |
Definition at line 55 of file FileNifti.hpp.
Open a Nifti file for reading and store its content in 'this'.
filename | Source filename to be readed. |
Definition at line 55 of file FileNifti.hpp.
Open a Nifti file for reading and store its content in 'this'.
filename | Source filename to be readed. |
Definition at line 230 of file FileNifti.hpp.
Reads a PBM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 130 of file FilePNM.hpp.
Reads a PBM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 130 of file FilePNM.hpp.
Reads a PBM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 225 of file FilePNM.hpp.
Reads a PGM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 252 of file FilePNM.hpp.
Reads a PGM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 252 of file FilePNM.hpp.
Reads a PGM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 382 of file FilePNM.hpp.
Reads a PNM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 573 of file FilePNM.hpp.
Reads a PNM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 573 of file FilePNM.hpp.
Reads a PNM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 621 of file FilePNM.hpp.
Reads a PPM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 409 of file FilePNM.hpp.
Reads a PPM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 409 of file FilePNM.hpp.
Reads a PPM file and returns its contents.
filename | Source filename to be readed. |
Definition at line 436 of file FilePNM.hpp.
Open a Scene file for reading and returns it.
filename | Source filename to be readed. |
Definition at line 52 of file FileScene.hpp.
Open a Scene file for reading and returns it.
filename | Source filename to be readed. |
Definition at line 52 of file FileScene.hpp.
Open a Scene file for reading and returns it.
filename | Source filename to be readed. |
Definition at line 145 of file FileScene.hpp.
Features are the coordinates of non-zero samples in src matrix.
src | Input source matrix to extract features. |
Features are the coordinates of non-zero samples in src image.
src | Input source image to extract features. |
|
static |
Returns true for supported images. Return false for folders.
filename | A filename. |
Definition at line 103 of file FileImage.hpp.
void Bial::SVGDForest | ( | const Image< D > & | cost, |
const Image< int > & | pred, | ||
const Image< int > & | label, | ||
const std::string & | filename | ||
) |
Writes the directed graph in SVG format into a file.
cost | The cost of the vertices. |
pred | The predecessor in the forest of each element. -1 means the element is a root. |
label | The label of the vertices. Must have the same size as vertex image. Converted to colors automatically. |
filename | File to write results. |
void Bial::SVGDGraph | ( | const Image< D > & | vertex, |
const Adjacency & | adj, | ||
const std::string & | filename | ||
) |
Writes the directed graph in SVG format into a file.
vertex | Lines image containing vertices with their weight. |
adj | An adjacency relation to compute the arcs. |
filename | File to write results. |
void Bial::SVGDGraph | ( | const Image< D > & | vertex, |
const Vector< bool > & | seed, | ||
const Adjacency & | adj, | ||
const std::string & | filename | ||
) |
Writes the directed graph in SVG format into a file.
vertex | Lines image containing vertices with their weight. |
seed | A boolean Vector with the same size of the vertex image indicating if each element is a seed or not. |
adj | An adjacency relation to compute the arcs. |
filename | File to write results. |
void Bial::SVGDGraph | ( | const Image< D > & | vertex, |
const Vector< bool > & | seed, | ||
const Image< int > & | label, | ||
const Adjacency & | adj, | ||
const std::string & | filename | ||
) |
Writes the directed graph in SVG format into a file.
vertex | Lines image containing vertices with their weight. |
seed | A boolean Vector with the same size of the vertex image indicating if each element is a seed or not. |
label | The label of the objects. Must have the same size as vertex image. Converted to colors automatically. |
adj | An adjacency relation to compute the arcs. |
filename | File to write results. |
Definition at line 4139 of file Vector.hpp.
Writes signal containts file. It writes a pair composed by frequency and value per line.
filename | A filename. |
|
static |
Writes matrix into file.
mtx | Input matrix. |
filename | Name of the file conatining matrix. |
Definition at line 178 of file FileMatrix.hpp.
|
static |
Write the input image to a file with given name.
img | input image. |
filename | Source file to be written. |
Definition at line 287 of file FileImage.hpp.
|
static |
Write the input image to a file with given name. Also, includes the header read from given header name.
img | input image. |
filename | Name of the file to be written. |
headername | Name of input file containg header to be cloned. |
Definition at line 417 of file FileImage.hpp.
Writes matrix into file.
mtx | Input matrix. |
filename | Name of the file conatining matrix. |
Definition at line 178 of file FileMatrix.hpp.
Write the input image to a file with given name.
img | input image. |
filename | Source file to be written. |
Definition at line 287 of file FileImage.hpp.
Definition at line 352 of file FileImage.hpp.
void Bial::Write | ( | const Image< D > & | img, |
const std::string & | filename, | ||
const std::string & | headername | ||
) |
Write the input image to a file with given name. Also, includes the header read from given header name.
img | input image. |
filename | Name of the file to be written. |
headername | Name of input file containg header to be cloned. |
Definition at line 417 of file FileImage.hpp.
void Bial::Write | ( | const Image< Color > & | img, |
const std::string & | filename, | ||
const std::string & | headername | ||
) |
Definition at line 469 of file FileImage.hpp.
|
static |
Open a BMP file to write 'this' content.
img | input image. |
filename | Source file to be written. |
Definition at line 44 of file FileBMP.hpp.
Open a BMP file to write 'this' content.
img | input image. |
filename | Source file to be written. |
Definition at line 44 of file FileBMP.hpp.
Definition at line 135 of file FileBMP.hpp.
|
static |
Writes matrix into file.
mtx | Input matrix. |
filename | Name of the file conatining matrix. |
Definition at line 173 of file FileMatrix.hpp.
Writes matrix into file.
mtx | Input matrix. |
filename | Name of the file conatining matrix. |
Definition at line 173 of file FileMatrix.hpp.
|
static |
Open a Nifti file to write the content from 'this'.
img | input image. |
filename | Source file to be written. |
Definition at line 403 of file FileNifti.hpp.
void Bial::WriteNifti | ( | const Image< D > & | img, |
const std::string & | filename, | ||
const NiftiHeader & | hdr | ||
) |
Open a Nifti file to write the content from 'this'.
img | input image. |
filename | Source file to be written. |
Definition at line 403 of file FileNifti.hpp.
void Bial::WriteNifti | ( | const Image< Color > & | img, |
const std::string & | filename, | ||
const NiftiHeader & | hdr | ||
) |
Definition at line 537 of file FileNifti.hpp.
|
static |
Open a PBM file to write 'this' content.
img | input image. |
filename | Source file to be written. |
hdr | PNM Header. |
binary | true for binary and false for text file. |
Definition at line 669 of file FilePNM.hpp.
void Bial::WritePBM | ( | const Image< D > & | img, |
const std::string & | filename, | ||
const PNMHeader & | hdr = PNMHeader() , |
||
const bool | binary = true |
||
) |
Open a PBM file to write 'this' content.
img | input image. |
filename | Source file to be written. |
hdr | PNM Header. |
binary | true for binary and false for text file. |
Definition at line 669 of file FilePNM.hpp.
void Bial::WritePBM | ( | const Image< Color > & | img, |
const std::string & | filename, | ||
const PNMHeader & | hdr, | ||
const bool | binary | ||
) |
Definition at line 748 of file FilePNM.hpp.
|
static |
Open a PGM file to write 'this' content.
img | input image. |
filename | Source file to be written. |
hdr | PNM Header. |
binary | true for binary and false for text file. |
Definition at line 779 of file FilePNM.hpp.
void Bial::WritePGM | ( | const Image< D > & | img, |
const std::string & | filename, | ||
const PNMHeader & | hdr = PNMHeader() , |
||
const bool | binary = false |
||
) |
Open a PGM file to write 'this' content.
img | input image. |
filename | Source file to be written. |
hdr | PNM Header. |
binary | true for binary and false for text file. |
Definition at line 779 of file FilePNM.hpp.
void Bial::WritePGM | ( | const Image< Color > & | img, |
const std::string & | filename, | ||
const PNMHeader & | hdr, | ||
const bool | binary | ||
) |
Definition at line 857 of file FilePNM.hpp.
|
static |
Open a PNM file to write 'this' content.
img | input image. |
filename | Source file to be written. |
hdr | PNM Header. |
binary | true for binary and false for text file. |
Definition at line 991 of file FilePNM.hpp.
void Bial::WritePNM | ( | const Image< D > & | img, |
const std::string & | filename, | ||
const PNMHeader & | hdr = PNMHeader() , |
||
const bool | binary = true |
||
) |
Open a PNM file to write 'this' content.
img | input image. |
filename | Source file to be written. |
hdr | PNM Header. |
binary | true for binary and false for text file. |
Definition at line 991 of file FilePNM.hpp.
void Bial::WritePNM | ( | const Image< Color > & | img, |
const std::string & | filename, | ||
const PNMHeader & | hdr, | ||
const bool | binary | ||
) |
Definition at line 1023 of file FilePNM.hpp.
|
static |
Open a PPM file to write 'this' content.
img | input image. |
filename | Source file to be written. |
hdr | PNM Header. |
binary | true for binary and false for text file. |
Definition at line 887 of file FilePNM.hpp.
void Bial::WritePPM | ( | const Image< D > & | img, |
const std::string & | filename, | ||
const PNMHeader & | hdr = PNMHeader() , |
||
const bool | binary = true |
||
) |
Open a PPM file to write 'this' content.
img | input image. |
filename | Source file to be written. |
hdr | PNM Header. |
binary | true for binary and false for text file. |
Definition at line 887 of file FilePNM.hpp.
void Bial::WritePPM | ( | const Image< Color > & | img, |
const std::string & | filename, | ||
const PNMHeader & | , | ||
const bool | binary | ||
) |
Definition at line 918 of file FilePNM.hpp.
|
static |
Open a Scene file to write 'this' content.
img | input image. |
filename | Source file to be written. |
Definition at line 171 of file FileScene.hpp.
Open a Scene file to write 'this' content.
img | input image. |
filename | Source file to be written. |
Definition at line 171 of file FileScene.hpp.