-
-
Notifications
You must be signed in to change notification settings - Fork 830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[software] New ColorChecker Detection and Correction #973
[software] New ColorChecker Detection and Correction #973
Conversation
return pt; | ||
} | ||
}; | ||
|
||
|
||
void detectColorChecker( | ||
std::vector<CCheckerData> &detectedCCheckers, | ||
std::vector<MacbethCCheckerQuad> &detectedCCheckers, | ||
ImageOptions& imgOpt, | ||
CCheckerDetectionSettings &settings) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const CCheckerDetectionSettings &settings
// Load image | ||
image::Image<image::RGBAfColor> img; | ||
image::readImage(imgSrcPath, img, imgOpt.readOptions); | ||
cv::Mat imgBGR = image::imageRGBAToCvMatBGR(img, CV_8UC3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To convert to 8 bits the image needs to be in sRGB in all case (so it cannot rely on imgOpt.readOptions input parameter).
To read the color values in floating point to compute the color transformation, the image needs to be in the original file format colorspace or in linear (just need to use the same convention where we apply it).
|
||
cv::Mat img; | ||
cvtColor(imageBGR, img, cv::COLOR_BGR2RGB); | ||
img.convertTo(img, CV_64F); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to use CV_64F instead of CV_32F?
add basic printing in log file
[software] colorChecker: rename functions [software] colorChecker: fix [software] colorChecker: turbo fix
To fix: read image as float value
Co-authored-by: Fabien Castan <[email protected]>
9c2e672
to
665e02f
Compare
Add MCC module to opencv which requires >= opencv-4.5.0 Update opencv to 4.5.2
ceres use git url and not an archive
7a001c5
to
af7be7f
Compare
Description
Color checker detection and Color checker corection nodes (beta)
Features list