fix curve application
This commit is contained in:
parent
55ef1ee471
commit
7682906fb8
@ -289,9 +289,12 @@ int perfromOperation(int operation, char** fileNames, const Config& config)
|
||||
return -1;
|
||||
}
|
||||
|
||||
cvtColor(inImages[0], inImages[0], cv::COLOR_BGR2GRAY);
|
||||
if(inImages[0].channels() > 1)
|
||||
cvtColor(inImages[0], inImages[0], cv::COLOR_BGR2GRAY);
|
||||
if(inImages[0].type() != CV_32FC1)
|
||||
inImages[0].convertTo(inImages[0], CV_32F);
|
||||
|
||||
Log(Log::DEBUG)<<"applyCurve";
|
||||
applyCurve(inImages[0], curve);
|
||||
}
|
||||
else if(operation == CREATE_CURVE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user