Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
Computes image gradients. More...
Functions | |
template<class D > | |
Image< D > | Canny (const Image< D > &suppressed_sobel, float lower_threshold, float higher_threshold) |
Returns Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0. More... | |
template<class D > | |
Image< D > | Canny (const Image< D > &img, float lower_threshold, float higher_threshold, float sigma) |
Returns Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0. More... | |
template<class D > | |
Image< D > | NonMaxSobelSuppression (const Image< D > &img) |
Returns the sobel magnitude image with non-maximum intensities suppressed. More... | |
template<class D > | |
Image< D > | NonMaxSobelSuppression (const Image< D > &magnitude, const Image< int > &direction) |
Returns the sobel magnitude image with non-maximum intensities suppressed. More... | |
template<class D > | |
Image< D > | Directional (const Image< D > &img, const Adjacency &adj) |
Returns a gradient composed by the sum of differences between a pixel and its adjacents. More... | |
template<class D > | |
void | Gabor (const Image< D > &img, float sigma, Image< D > *magnitude=nullptr, Image< int > *direction=nullptr) |
Returns the directional Gabor filter over image. More... | |
template<class D > | |
Image< D > | Morphological (const Image< D > &image) |
Computes the gradient image (dilation - erosion) using spherical adjacency relation of one pixel of radius. More... | |
template<class D > | |
Image< D > | Morphological (const Image< D > &image, const Adjacency &adjacency) |
Computes the gradient image. More... | |
template<class D > | |
Image< D > | CloseHoles (const Image< D > &canny) |
Returns Canny gradient with one pixel wide holes closed. More... | |
template<class D > | |
void | RemoveRedundantPoint (Image< D > &canny) |
Removes redundant points from components leaving the minimal width components. More... | |
template<class D > | |
void | RemoveBifurcation (Image< D > &canny) |
Removes points of bifurcation. It tries to keep straighter lines when possible. More... | |
Vector< size_t > | Extremities (const Image< int > &label) |
Gets one of the extremities of each segment. More... | |
template<class D > | |
void | RemoveSmallSegments (Image< D > &canny, size_t min_seg_size) |
Removes the edges that are smaller than the given size. More... | |
template<class D > | |
Image< D > | ScaleCanny (const Image< D > &img, size_t window_scale, float lower_threshold, float higher_threshold) |
Returns a scaled Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0. More... | |
template<class D > | |
Image< D > | SubScaleCanny (const Image< D > &img, const Image< D > &base_grad, size_t window_scale, float lower_threshold) |
Returns a sub scaled Canny edge detection image. Lower threshold as a frequency from 0.0 to 1.0. More... | |
template<class D > | |
Image< D > | MultiScaleCanny (const Image< D > &img, float lower_threshold, float higher_threshold, float sigma, size_t scales) |
Returns multi scale Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0. More... | |
template<class D > | |
Image< D > | MultiSubScaleCanny (const Image< D > &img, float lower_threshold, float higher_threshold, float sigma, size_t scales) |
Returns multi scale Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0. More... | |
template<class D > | |
Image< D > | MultiScaleSizeCanny (const Image< D > &img, float lower_threshold, float higher_threshold, float sigma, size_t scales, float fraction) |
Returns multi scale Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0. More... | |
template<class D > | |
Image< D > | DirectionalSobel (const Image< D > &img, size_t direction) |
Returns the directional Sobel filter over image. More... | |
template<class D > | |
void | Sobel (const Image< D > &img, Image< D > *magnitude=nullptr, Image< int > *direction=nullptr) |
Returns the directional Sobel filter over image. More... | |
Computes image gradients.
Image< D > Bial::Gradient::Canny | ( | const Image< D > & | suppressed_sobel, |
float | lower_threshold, | ||
float | higher_threshold | ||
) |
Returns Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0.
suppressed_sobel | Suppressed gradient image given. |
lower_threshold | Lower hysteresis threshold. |
higher_threshold | Higher hysteresis threshold. |
Image< D > Bial::Gradient::Canny | ( | const Image< D > & | img, |
float | lower_threshold, | ||
float | higher_threshold, | ||
float | sigma | ||
) |
Returns Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0.
img | Input image. |
lower_threshold | Lower hysteresis threshold. |
higher_threshold | Higher hysteresis threshold. |
sigma | Standard deviation of Gaussian filter. |
Returns Canny gradient with one pixel wide holes closed.
canny | Input Canny gradient image. |
Image< D > Bial::Gradient::Directional | ( | const Image< D > & | img, |
const Adjacency & | adj | ||
) |
Returns a gradient composed by the sum of differences between a pixel and its adjacents.
img | Input image. |
adj | An adjacency relation. |
Image< D > Bial::Gradient::DirectionalSobel | ( | const Image< D > & | img, |
size_t | direction | ||
) |
Returns the directional Sobel filter over image.
img | Input image. |
direction | One of the dimensions of the input image. |
Gets one of the extremities of each segment.
label | An image containing labeled Canny gradient segments. |
void Bial::Gradient::Gabor | ( | const Image< D > & | img, |
float | sigma, | ||
Image< D > * | magnitude = nullptr , |
||
Image< int > * | direction = nullptr |
||
) |
Returns the directional Gabor filter over image.
img | Input image. |
sigma | Standard deviation of the Gaussian. |
magnitude | Gabor magnitude image. |
direction | Output Gabor direction image. |
Computes the gradient image (dilation - erosion) using spherical adjacency relation of one pixel of radius.
image | Input image. |
Image< D > Bial::Gradient::MultiScaleCanny | ( | const Image< D > & | img, |
float | lower_threshold, | ||
float | higher_threshold, | ||
float | sigma, | ||
size_t | scales | ||
) |
Returns multi scale Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0.
img | Input image. |
lower_threshold | Lower hysteresis threshold. |
higher_threshold | Higher hysteresis threshold. |
sigma | Standard deviation of Gaussian filter. |
scales | Number of scales to run Canny. |
Image< D > Bial::Gradient::MultiScaleSizeCanny | ( | const Image< D > & | img, |
float | lower_threshold, | ||
float | higher_threshold, | ||
float | sigma, | ||
size_t | scales, | ||
float | fraction | ||
) |
Returns multi scale Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0.
img | Input image. |
lower_threshold | Lower hysteresis threshold. |
higher_threshold | Higher hysteresis threshold. |
sigma | Standard deviation of Gaussian filter. |
scales | Number of scales to run Canny. |
fraction | Fraction of the maximum size edge that specifies the minimum edge size. (0.0, 1.0) |
Image< D > Bial::Gradient::MultiSubScaleCanny | ( | const Image< D > & | img, |
float | lower_threshold, | ||
float | higher_threshold, | ||
float | sigma, | ||
size_t | scales | ||
) |
Returns multi scale Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0.
img | Input image. |
lower_threshold | Lower hysteresis threshold. |
higher_threshold | Higher hysteresis threshold. |
sigma | Standard deviation of Gaussian filter. |
scales | Number of scales to run Canny. |
Returns the sobel magnitude image with non-maximum intensities suppressed.
img | Input image. |
Image< D > Bial::Gradient::NonMaxSobelSuppression | ( | const Image< D > & | magnitude, |
const Image< int > & | direction | ||
) |
Returns the sobel magnitude image with non-maximum intensities suppressed.
magnitude | Sobel magnitude image. |
direction | Sobel magnitude direction. |
void Bial::Gradient::RemoveBifurcation | ( | Image< D > & | canny | ) |
Removes points of bifurcation. It tries to keep straighter lines when possible.
canny | A Canny gradient image. |
void Bial::Gradient::RemoveRedundantPoint | ( | Image< D > & | canny | ) |
Removes redundant points from components leaving the minimal width components.
canny | A Canny gradient image. |
void Bial::Gradient::RemoveSmallSegments | ( | Image< D > & | canny, |
size_t | min_seg_size | ||
) |
Removes the edges that are smaller than the given size.
canny | A Canny gradient image. |
min_seg_size | Minimum size of a segment. |
Image< D > Bial::Gradient::ScaleCanny | ( | const Image< D > & | img, |
size_t | window_scale, | ||
float | lower_threshold, | ||
float | higher_threshold | ||
) |
Returns a scaled Canny edge detection image. Lower and higher threshold as frequencies from 0.0 to 1.0.
img | Input image. |
window_scale | Scale by which image is divided to generate the window. |
lower_threshold | Lower hysteresis threshold. |
higher_threshold | Higher hysteresis threshold. |
void Bial::Gradient::Sobel | ( | const Image< D > & | img, |
Image< D > * | magnitude = nullptr , |
||
Image< int > * | direction = nullptr |
||
) |
Returns the directional Sobel filter over image.
img | Input image. |
magnitude | Sobel magnitude image. |
direction | Output Sobel direction image. |
Image< D > Bial::Gradient::SubScaleCanny | ( | const Image< D > & | img, |
const Image< D > & | base_grad, | ||
size_t | window_scale, | ||
float | lower_threshold | ||
) |
Returns a sub scaled Canny edge detection image. Lower threshold as a frequency from 0.0 to 1.0.
img | Input image. |
base_grad | Gradient from higher levels with greater windows. |
window_scale | Scale by which image is divided to generate the window. |
lower_threshold | Lower hysteresis threshold. |