$extrastylesheet
Functions | |
template<typename I > | |
mln::trait::concrete< I >::ret | crop (const Image< I > &input, const mln_box(I)&domain) |
template<typename I > | |
mln::trait::concrete< I >::ret | crop_without_localization (const Image< I > &input, const mln_box(I)&domain) |
template<typename I , typename N > | |
mln::trait::concrete< I >::ret | denoise (const Image< I > &input, const Neighborhood< N > &nbh, unsigned fg_min_card, unsigned bg_min_card) |
template<typename I , typename N > | |
mln::trait::concrete< I >::ret | denoise_bg (const Image< I > &input, const Neighborhood< N > &nbh, unsigned min_card) |
template<typename I , typename N > | |
mln::trait::concrete< I >::ret | denoise_fg (const Image< I > &input, const Neighborhood< N > &nbh, unsigned min_card) |
template<typename I , typename J > | |
mln::trait::concrete< I >::ret | deskew (const Image< I > &crop_gl, const Image< I > &input_gl) |
template<typename I > | |
mln::trait::concrete< I >::ret | homogeneous_contrast (const Image< I > &input, unsigned h) |
template<typename I > | |
mln::trait::concrete< I >::ret | homogeneous_contrast (const Image< I > &input) |
template<typename I > | |
mln::trait::concrete< I >::ret | rotate_90 (const Image< I > &input, bool positive) |
template<typename I > | |
mln::trait::concrete< I >::ret | rotate_90 (const Image< I > &input) |
template<typename I > | |
mln::util::couple< typename mln::trait::concrete< I >::ret, typename mln::trait::concrete < I >::ret > | split_bg_fg (const Image< I > &input, unsigned lambda, unsigned delta) |
Namespace of preprocessing routines.
mln::trait::concrete< I >::ret scribo::preprocessing::crop | ( | const Image< I > & | input, |
const mln_box(I)& | domain | ||
) |
crop an image preserving the localization.
[in] | input | An image. |
[in] | domain | A region of interest. |
domain
with the corresponding data copied from input
. mln::trait::concrete< I >::ret scribo::preprocessing::crop_without_localization | ( | const Image< I > & | input, |
const mln_box(I)& | domain | ||
) |
crop an image without preserving the localization.
[in] | input | An image. |
[in] | domain | A region of interest. |
domain
. Its data corresponds to the data copied from input
in the domain domain
. mln::trait::concrete< I >::ret scribo::preprocessing::denoise | ( | const Image< I > & | input, |
const Neighborhood< N > & | nbh, | ||
unsigned | fg_min_card, | ||
unsigned | bg_min_card | ||
) |
Denoise an image.
Denoising is performed both on the foreground and the background.
[in] | input | A binary image. True for objects, False for background. |
[in] | nbh | Neighborhood to use for denoising. |
[in] | fg_min_card | Minimum component cardinality to not be considered as noise in the foreground. |
[in] | bg_min_card | Minimum component cardinality to not be considered as noise in the foreground. |
input
. All small components have been removed. mln::trait::concrete< I >::ret scribo::preprocessing::denoise_bg | ( | const Image< I > & | input, |
const Neighborhood< N > & | nbh, | ||
unsigned | min_card | ||
) |
Denoise image background.
[in] | input | A binary image. True for objects, False for background. |
[in] | nbh | Neighborhood to use for denoising. |
[in] | min_card | Minimum component cardinality to not be considered as noise. |
input
. All small components have been removed and merged with the background. mln::trait::concrete< I >::ret scribo::preprocessing::denoise_fg | ( | const Image< I > & | input, |
const Neighborhood< N > & | nbh, | ||
unsigned | min_card | ||
) |
Denoise image foreground.
[in] | input | A binary image. True for objects, False for background. |
[in] | nbh | Neighborhood to use for denoising. |
[in] | min_card | Minimum component cardinality to not be considered as noise. |
input
. All small components have been removed and merged with the background. mln::trait::concrete< I >::ret scribo::preprocessing::deskew | ( | const Image< I > & | crop_gl, |
const Image< I > & | input_gl | ||
) |
Deskew a region of interest.
[in] | crop_gl | A gray-level image. |
[in] | input_gl | A gray-level image. |
Handles skew angles from -25 to +25 degrees.
crop_gl
and input_gl
must be 2D images and must be identical (e.g. only the value differs).
This algorithm is designed for images created from a region of interest (e.g. Not a full document).
mln::trait::concrete< I >::ret scribo::preprocessing::homogeneous_contrast | ( | const Image< I > & | input, |
unsigned | h | ||
) |
Improve contrast homogeneity in an image.
[in] | input | A gray-level image. |
[in] | h | Height attribute value for leveling closing. |
mln::trait::concrete< I >::ret scribo::preprocessing::homogeneous_contrast | ( | const Image< I > & | input | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Default height attribute value is set to 75.
mln::trait::concrete< I >::ret scribo::preprocessing::rotate_90 | ( | const Image< I > & | input, |
bool | positive | ||
) |
Perform a +90/-90 degree rotation.
[in] | input | An image. |
[in] | positive | If set to true, performs a +90 degree rotation, -90 degree otherwise. |
mln::trait::concrete< I >::ret scribo::preprocessing::rotate_90 | ( | const Image< I > & | input | ) |
Performs a +90 degree rotation.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
mln::util::couple<typename mln::trait::concrete< I >::ret, typename mln::trait::concrete< I >::ret> scribo::preprocessing::split_bg_fg | ( | const Image< I > & | input, |
unsigned | lambda, | ||
unsigned | delta | ||
) |
Split the background and the foreground.
[in] | input | A color image. |
[in] | lambda | Lambda used for morphological closing/opening. |
[in] | delta | Max distance between values in closing and opening image. |