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:
@@ -205,6 +205,10 @@ public:
|
||||
return r * 0.2126729 + g * 0.7151521 + b * 0.0721750;
|
||||
}
|
||||
|
||||
static float rgbLuminance(float r, float g, float b, const double workingspace[3][3])
|
||||
{
|
||||
return r * workingspace[1][0] + g * workingspace[1][1] + b * workingspace[1][2];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Convert red/green/blue to L*a*b
|
||||
|
Reference in New Issue
Block a user