added haze removal tool
Based on the paper: "Single Image Haze Removal Using Dark Channel Prior" by He, Sun and Tang using a guided filter for the "soft matting" of the transmission map
This commit is contained in:
@@ -952,7 +952,7 @@ inline void rescale_nearest (const Array2Df &src, Array2Df &dst, bool multithrea
|
||||
|
||||
inline float luminance (float r, float g, float b, TMatrix ws)
|
||||
{
|
||||
return r * ws[1][0] + g * ws[1][1] + b * ws[1][2];
|
||||
return Color::rgbLuminance(r, g, b, ws);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user