22 #ifndef CRNIMAGEBW_HEADER
23 #define CRNIMAGEBW_HEADER
Image< pixel::BW > ImageBW
Black and white image class.
size_t Regularize(ImageBW &img, size_t min_neighbors=0)
Removes isolated pixels and smooths edges.
Image< int > ImageIntGray
Int grayscale image class.
Histogram VerticalSlantedProjection(const ImageBW &img, const Angle< Radian > &theta)
Computes the vertical projection after rotation.
size_t CountBlackPixels(const ImageBW &img) noexcept
Returns the number of black pixels.
ImageIntGray DistanceTransform(const ImageBW &img, const MatrixInt &m1, const MatrixInt &m2)
Creates an image containing the distance transform.
double MeanBlackRun(const ImageBW &img) noexcept
Gets the mean horizontal black run.
double MeanBlackVRun(const ImageBW &img) noexcept
Gets the mean vertical black run.
Histogram BottomProfile(const ImageBW &img)
Computes the bottom profile.
Histogram TopProfile(const ImageBW &img)
Computes the top profile.
double MeanWhiteRun(const ImageBW &img, int blackrun=-1) noexcept
Gets the mean horizontal white run.
Histogram HorizontalProjection(const ImageBW &img)
Computes the horizontal projection.
Histogram RightProfile(const ImageBW &img)
Computes the right profile.
Histogram LeftProfile(const ImageBW &img)
Computes the left profile.
size_t CountWhitePixels(const ImageBW &img) noexcept
Returns the number of white pixels.
Histogram VerticalProjection(const ImageBW &img)
Computes the vertical projection.