18 #ifndef PIC_ALGORITHMS_BINARIZATION_HPP 19 #define PIC_ALGORITHMS_BINARIZATION_HPP 21 #include "../base.hpp" 23 #include "../image.hpp" 24 #include "../filtering/filter_luminance.hpp" 25 #include "../filtering/filter_gaussian_2d.hpp" 26 #include "../filtering/filter_threshold.hpp" 50 imgOut = flt_thr.
Process(
Double(imgIn_lum, imgIn_lum_flt), imgOut);
float * getMeanVal(BBox *box, float *ret)
getMeanVal computes the mean for the current Image.
virtual Image * Process(ImageVec imgIn, Image *imgOut)
Process.
Definition: filter.hpp:390
PIC_INLINE Image * binarization(Image *imgIn, Image *imgOut=NULL, bool bAdaptive=false)
binarization
Definition: binarization.hpp:36
float heightf
Definition: image.hpp:84
The FilterThreshold class.
Definition: filter_threshold.hpp:31
PIC_INLINE ImageVec Double(Image *img1, Image *img2)
Double creates an std::vector which contains img1 and img2; this is for filters input.
Definition: image_vec.hpp:49
static Image * execute(Image *imgIn, Image *imgOut, LUMINANCE_TYPE type=LT_CIE_LUMINANCE)
execute
Definition: filter_luminance.hpp:166
Image * Process(ImageVec imgIn, Image *imgOut)
Process.
Definition: filter_npasses.hpp:310
#define PIC_INLINE
Definition: base.hpp:33
float widthf
Definition: image.hpp:84
#define MIN(a, b)
Definition: math.hpp:69
The Image class stores an image as buffer of float.
Definition: image.hpp:60
PIC_INLINE ImageVec Single(Image *img)
Single creates an std::vector which contains img; this is for filters input.
Definition: image_vec.hpp:36
Definition: bilateral_separation.hpp:25
The FilterGaussian2D class.
Definition: filter_gaussian_2d.hpp:31