All Projects → frotms → image-filter

frotms / image-filter

Licence: other
some filters (boxfilter, fast bilateral filter, fast guided filter and permutohedral bilateral filter)

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to image-filter

Bilateral-Filter
A filter that smooths images while preserving edges.
Stars: ✭ 18 (-55%)
Mutual labels:  bilateral-filter
image-filtering
image filtering techniques in python with examples
Stars: ✭ 19 (-52.5%)
Mutual labels:  bilateral-filter

some mainstream image filter: boxfilter, fast guided filter, fast bilateral filter, permutohedral bilateral filter and propagated filter

  • boxfilter
  • fast guided filter
  • fast bilateral filter
  • permutohedral bilateral filter
  • propagated filter

All original dependencies have been removed. Code could be run independently.

BOXFILTER

@param src         				image,single channel.

@param dst      				output image,single channel.

@param w           				width of image.

@param h           				height of image.

@param c      					channel of image, only c = 1.

@param r      					local window radius.

@return            				0:ok; 1:error
int BoxfilterFilter(unsigned char *src, unsigned char *dst, int w, int h, int c, int r);

Fast Guided Filter

@param src         				image,single channel.

@param guidance           		guided image,single channel.

@param dst      				output image,single channel.

@param w           				width of image.

@param h           				height of image.

@param c      					channel of image, only c = 1.

@param r      					local window radius.

@param rp      					regularization parameter:eps.

@param sr      					subsampling ratio, sr>1:downscale; 0<sr<1:upscale.

@return            				0:ok; 1:error
int FastGuidedFilter(unsigned char *src, unsigned char *guidance, unsigned char *dst, int w, int h, int c, int r, float rp, float sr);

FastBilateralFilter

@param src         				input image.

@param guidance           		guided image,single channel, only single channel is valid; invalid parameter in three channels.

@param dst      				output image.

@param w           				width of image.

@param h           				height of image.

@param c      					channel of image, only c = 1 or c = 3.

@param sigma_s      			filter sigma in the coordinate space. A larger value of the parameter means that farther pixels will influence each other as long as their colors are close enough (see sigmaColor ). When d>0, it specifies the neighborhood size regardless of sigmaSpace. Otherwise, d is proportional to sigmaSpace.

@param sigma_r      			filter sigma in the color space. A larger value of the parameter means that farther colors within the pixel neighborhood (see sigmaSpace) will be mixed together, resulting in larger areas of semi-equal color.

@return            				0:ok; 1:error
int FastBilateralFilter(unsigned char *src, unsigned char *guidance, unsigned char *dst, int w, int h, int c, float sigma_s, float sigma_r);

PermutohedralBilateralFilter

@param src         				input image.

@param guidance           		guided image. 

@param dst      				output image.

@param w           				width of image.

@param h           				height of image.

@param c      					channel of image, only c = 1 or c = 3.

@param sigma_s      			filter sigma in the coordinate space. A larger value of the parameter means that farther pixels will influence each other as long as their colors are close enough (see sigmaColor ). When d>0, it specifies the neighborhood size regardless of sigmaSpace. Otherwise, d is proportional to sigmaSpace.

@param sigma_r      			filter sigma in the color space. A larger value of the parameter means that farther colors within the pixel neighborhood (see sigmaSpace) will be mixed together, resulting in larger areas of semi-equal color.

@return            				0:ok; 1:error
int PermutohedralBilateralFilter(unsigned char *src, unsigned char *guidance, unsigned char *dst, int w, int h, int c, float sigma_s, float sigma_r);

PropagatedFilter

@param src         				input image.

@param guidance           		guided image. 

@param dst      				output image.

@param w           				width of image.

@param h           				height of image.

@param c      					channel of image, only c = 1 or c = 3.

@param r      					local window radius.

@param sigma_s      			filter sigma in the coordinate space. A larger value of the parameter means that farther pixels will influence each other as long as their colors are close enough (see sigmaColor ). When d>0, it specifies the neighborhood size regardless of sigmaSpace. Otherwise, d is proportional to sigmaSpace.

@param sigma_r      			filter sigma in the color space. A larger value of the parameter means that farther colors within the pixel neighborhood (see sigmaSpace) will be mixed together, resulting in larger areas of semi-equal color.

@return            				0:ok; 1:error
int PropagatedFilter(unsigned char *src, unsigned char *guidance, unsigned char *dst, int w, int h, int c, int r, float sigma_s, float sigma_r);

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].