Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
Classes | |
class | BrainIntensities |
Robust statistics for minimum and maximum tissue intensities. More... | |
Functions | |
template<class D > | |
size_t | HeadTopSlice (const Image< D > &img, const std::string &orientation) |
It searches for the first superior axial slice with a pixel which intensity is higher than otsu threshold. More... | |
template<class D > | |
Vector< size_t > | COGbyIntensityThreshold (const Image< D > &img) |
Returns a Vector with COG coordinates, based on a binary mask of the image main object. More... | |
template<class D > | |
Vector< size_t > | COGbyWeightedIntensity (const Image< D > &img) |
Returns a Vector with COG coordinates, based on intensity weighted values of the image. More... | |
template<class D > | |
Vector< size_t > | COGbyHeadTopDistance (const Image< D > &img, const std::string &orientation) |
Returns a Vector with COG coordinates, based on intensity weighted values of the image and distance from the top of the head. More... | |
template<class D > | |
Vector< size_t > | COGbyIntegralImage (const Image< D > &img, const std::string &orientation, MRIModality modality) |
Returns a Vector with COG coordinates, based on intensity weighted values of the image and distance from the top of the head. More... | |
template<class D > | |
Image< D > | RemoveIntensityOutliers (const Image< D > &img, const Image< D > &msk, float compression, MRIModality modality) |
Remove outliers from brain mask which have extreme intensity values. Used to correct inhomogeneity. More... | |
template<class D > | |
Image< D > | BiasSurfaceEstimation (const Image< D > &img, const Image< D > &msk, const Image< D > &cln_msk, float radius, MRIModality modality) |
Computes bias surface based on white matter pixels in the image. More... | |
template<class D > | |
Image< D > | BiasSurfaceRemoval (const Image< D > &img, const Image< D > &msk, const Image< D > &bias, MRIModality modality) |
Removes estimated bias field from the input image. More... | |
template<class D > | |
Image< D > | InhomogeneityCorrection (const Image< D > &img, const Image< D > &msk, float radius=15.5, size_t compression=2, MRIModality modality=MRIModality::T1) |
Computes bias surface based on white matter pixels in the image. More... | |
template<class D > | |
Vector< size_t > | Location (const Image< D > &img, const std::string &orientation, Vector< Box > &best_rectangles, Image< float > &similarity) |
Finds the best location of a box inside the brain and of surrounding boxes outside of the brain. More... | |
template<class D > | |
Image< D > | SkullStripping (const Image< D > &img, const std::string &orientation) |
Segments the brain from the background. More... | |
template<class D > | |
void | TissueLabeling (const Image< D > &image, const Image< D > &mask, Image< int > &label, D intensity) |
Set labeled clusters into low and high intensity tissues. Low intensity tissue pixels have their label set to 0 and high intensity tissue pixels have their label set to 1. More... | |
template<class D > | |
Image< int > | TissueSegmentation (const Image< D > &img, const Image< D > &msk, D tissue_intensity, float scl_min, float scl_max, bool hierarchical) |
Set labeled clusters into low and high intensity tissues. Low intensity tissue pixels have their label set to 0 and high intensity tissue pixels have their label set to 1. More... | |
template<class D > | |
Image< int > | TissueSegmentation (const Image< D > &img, const Image< D > &msk, MRIModality modality, float csf_scl_min=0.1, float csf_scl_max=0.2, float gm_scl_min=0.2, float gm_scl_max=0.3, bool hierarchical=false) |
Segment brain into CSF, GM, and WM tissues. More... | |
Vector< size_t > Bial::Brain::COGbyHeadTopDistance | ( | const Image< D > & | img, |
const std::string & | orientation | ||
) |
Returns a Vector with COG coordinates, based on intensity weighted values of the image and distance from the top of the head.
img | A brain image. |
orientation | Image orientation. Must be a composition of three values containing: LR, RL, SI, IS, AP, or PA. Look for NiftiHeader::Orientation() function for examples. |
Vector< size_t > Bial::Brain::COGbyIntegralImage | ( | const Image< D > & | img, |
const std::string & | orientation, | ||
MRIModality | modality | ||
) |
Returns a Vector with COG coordinates, based on intensity weighted values of the image and distance from the top of the head.
img | A brain image. |
orientation | Image orientation. Must be a composition of three values containing: LR, RL, SI, IS, AP, or PA. Look for NiftiHeader::Orientation() function for examples. |
modality | Image modality. Defined in Image.hpp. |
size_t Bial::Brain::HeadTopSlice | ( | const Image< D > & | img, |
const std::string & | orientation | ||
) |
It searches for the first superior axial slice with a pixel which intensity is higher than otsu threshold.
img | A brain image. |
orientation | Image orientation. Must be a composition of three values containing: LR, RL, SI, IS, AP, or PA. Look for NiftiHeader::Orientation() function for examples. |
Image< D > Bial::Brain::InhomogeneityCorrection | ( | const Image< D > & | img, |
const Image< D > & | msk, | ||
float | radius = 15.5 , |
||
size_t | compression = 2 , |
||
MRIModality | modality = MRIModality::T1 |
||
) |
Computes bias surface based on white matter pixels in the image.
img | A MRI image. |
msk | Brain mask. |
radius | Radius for distance transform. For searching local WM pixel (7.0 to 28.0) |
compression | compression rate to compute bias field faster (1, 2, or 4). |
modality | Image modality. |
Vector< size_t > Bial::Brain::Location | ( | const Image< D > & | img, |
const std::string & | orientation, | ||
Vector< Box > & | best_rectangles, | ||
Image< float > & | similarity | ||
) |
Finds the best location of a box inside the brain and of surrounding boxes outside of the brain.
img | A MRI image. |
orientation | Image orientation. Must be a composition of three values containing: LR, RL, SI, IS, AP, or PA. Look for NiftiHeader::Orientation() function for examples. |
best_rectangles | Rectangles containing the brain and external regions. |
similarity | Similarity image showing the most probable location of the brain box center. |
Image< D > Bial::Brain::RemoveIntensityOutliers | ( | const Image< D > & | img, |
const Image< D > & | msk, | ||
float | compression, | ||
MRIModality | modality | ||
) |
Remove outliers from brain mask which have extreme intensity values. Used to correct inhomogeneity.
img | An MRI image of the head. |
msk | Brain mask. |
compression | compression rate to compute bias field faster (1, 2, or 4). |
modality | Image modality. Defined in Image.hpp. Must be MRI_T1, MRI_T2, or MRI_PD. |
Image< D > Bial::Brain::SkullStripping | ( | const Image< D > & | img, |
const std::string & | orientation | ||
) |
Segments the brain from the background.
img | A MRI image. |
orientation | Image orientation. Must be a composition of three values containing: LR, RL, SI, IS, AP, or PA. Look for NiftiHeader::Orientation() function for examples. |
void Bial::Brain::TissueLabeling | ( | const Image< D > & | image, |
const Image< D > & | mask, | ||
Image< int > & | label, | ||
D | intensity | ||
) |
Set labeled clusters into low and high intensity tissues. Low intensity tissue pixels have their label set to 0 and high intensity tissue pixels have their label set to 1.
image | An MRI image of the head. |
mask | Brain or tissue mask. |
label | Brain or tissues segmented in labeled clusters. |
intensity | Threshold between low and high intensity tissues. |
Image< int > Bial::Brain::TissueSegmentation | ( | const Image< D > & | img, |
const Image< D > & | msk, | ||
D | tissue_intensity, | ||
float | scl_min, | ||
float | scl_max, | ||
bool | hierarchical | ||
) |
Set labeled clusters into low and high intensity tissues. Low intensity tissue pixels have their label set to 0 and high intensity tissue pixels have their label set to 1.
img | An MRI image of the head. |
msk | Brain mask. |
tissue_intensity | Value between low and high intensity tissues. |
scl_min,scl_max | Minimum and maximum number of neighbers for OPF clustering. |
hierarchical | Selects between spectral (false) or hierarchicar clustering. |
Image< int > Bial::Brain::TissueSegmentation | ( | const Image< D > & | img, |
const Image< D > & | msk, | ||
MRIModality | modality, | ||
float | csf_scl_min = 0.1 , |
||
float | csf_scl_max = 0.2 , |
||
float | gm_scl_min = 0.2 , |
||
float | gm_scl_max = 0.3 , |
||
bool | hierarchical = false |
||
) |
Segment brain into CSF, GM, and WM tissues.
img | An MRI image of the head. |
msk | Brain mask. |
modality | Image modality. Defined in Image.hpp. Must be MRI_T1, MRI_T2, or MRI_PD. |
xxx_scl_min,xxx_scl_max | Minimum and maximum number of neighbers for OPF clustering to segment xxx tissue. |
hierarchical | Selects between spectral (false) or hierarchicar clustering. |