|
|
@ -495,10 +495,15 @@ namespace hdrplus
|
|
|
|
return sharpImage;
|
|
|
|
return sharpImage;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void finish::pipeline_finish(){
|
|
|
|
void finish::process(std::string burstPath, cv::Mat mergedBayer,int refIdx){
|
|
|
|
// copy mergedBayer to rawReference
|
|
|
|
// copy mergedBayer to rawReference
|
|
|
|
std::cout<<"finish pipeline start ..."<<std::endl;
|
|
|
|
std::cout<<"finish pipeline start ..."<<std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this->refIdx = refIdx;
|
|
|
|
|
|
|
|
this->burstPath = burstPath;
|
|
|
|
|
|
|
|
this->mergedBayer = mergedBayer;//loadFromCSV(mergedBayerPath, CV_16UC1);
|
|
|
|
|
|
|
|
load_rawPathList(burstPath);
|
|
|
|
|
|
|
|
|
|
|
|
// read in ref img
|
|
|
|
// read in ref img
|
|
|
|
bayer_image* ref = new bayer_image(rawPathList[refIdx]);
|
|
|
|
bayer_image* ref = new bayer_image(rawPathList[refIdx]);
|
|
|
|
cv::Mat processedRefImage = postprocess(ref->libraw_processor,params.rawpyArgs);
|
|
|
|
cv::Mat processedRefImage = postprocess(ref->libraw_processor,params.rawpyArgs);
|
|
|
|