18 #ifndef PIC_ALGORITHMS_COLOR_TO_GRAY_HPP 19 #define PIC_ALGORITHMS_COLOR_TO_GRAY_HPP 21 #include "../base.hpp" 22 #include "../image.hpp" 23 #include "../image_vec.hpp" 24 #include "../filtering/filter_channel.hpp" 25 #include "../tone_mapping/exposure_fusion.hpp" 63 for(
int i = 0; i < channels; i++) {
70 for(
int i = 0; i < channels; i++) {
74 stdVectorClear<Image>(img_vec);
82 imgOut = c2g.
Process(imgIn, imgOut);
Image * Process(ImageVec imgIn, Image *imgOut=NULL)
Process.
Definition: tone_mapping_operator.hpp:120
int channels
Definition: image.hpp:80
T * delete_s(T *data)
delete_s
Definition: std_util.hpp:123
Image * Process(Image *imgIn, Image *imgOut)
Definition: color_to_gray.hpp:49
std::vector< Image * > ImageVec
ImageVec an std::vector of pic::Image.
Definition: image_vec.hpp:29
virtual Image * Process(ImageVec imgIn, Image *imgOut)
Process.
Definition: filter.hpp:390
Definition: color_to_gray.hpp:30
The ExposureFusion class.
Definition: exposure_fusion.hpp:39
ColorToGray()
Definition: color_to_gray.hpp:38
FilterChannel * flt
Definition: color_to_gray.hpp:34
ExposureFusion ef
Definition: color_to_gray.hpp:33
~ColorToGray()
Definition: color_to_gray.hpp:44
void update(std::vector< int > channels_vec)
update
Definition: filter_channel.hpp:103
The FilterChannel class.
Definition: filter_channel.hpp:56
The Image class stores an image as buffer of float.
Definition: image.hpp:60
void update(float wC=1.0f, float wE=1.0f, float wS=1.0f)
update
Definition: exposure_fusion.hpp:196
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
PIC_INLINE std::vector< int > SingleInt(int v0)
SingleInt.
Definition: filter_channel.hpp:30
int width
Definition: image.hpp:80
int height
Definition: image.hpp:80
static Image * execute(Image *imgIn, Image *imgOut)
Definition: color_to_gray.hpp:79