Week1/MathOperationsOnImages/DataTypeConversion/Utiliies.cpp
// Multiply with scaling factor to increase contrast
Multiply with scaling factor to increase contrast
Multiply with scaling factor to increase contrast
const cv::Mat Utilities::BruteforceConstrast(const cv::Mat mat, const double contrastPercentage) {
    cv::Mat contrast = mat.clone();
    contrast.convertTo(contrast, CV_64F);
    contrast = contrast * (1 + contrastPercentage / 100.0);
    return contrast;
}
const cv :: Mat Utilities :: BruteforceConstrast ( const cv :: Mat mat , const double contrastPercentage ) { cv :: Mat contrast = mat . clone ( ) ; contrast . convertTo ( contrast , CV_64F ) ; contrast = contrast * ( 1 + contrastPercentage / 100.0 ) ; return contrast ; }
Multiply with scaling factor to increase contrast
Multiply with scaling factor to increase contrast
// Convert contrastHigh to float