diff --git a/src/utils/src/DICe_ImageIO.cpp b/src/utils/src/DICe_ImageIO.cpp index 88c8d292..38cc12cb 100644 --- a/src/utils/src/DICe_ImageIO.cpp +++ b/src/utils/src/DICe_ImageIO.cpp @@ -382,7 +382,7 @@ DICE_LIB_DLL_EXPORT cv::Mat read_image(const char * file_name){ Teuchos::RCP params = Teuchos::rcp(new Teuchos::ParameterList()); if(image_file_type(file_name)==CINE){ - params->set(spread_intensity_histogram,true); + //params->set(spread_intensity_histogram,true); params->set(filter_failed_cine_pixels,true); params->set(convert_cine_to_8_bit,true); } diff --git a/tools/DICe_TrackingMovieMaker.cpp b/tools/DICe_TrackingMovieMaker.cpp index e029aef2..01dc86c9 100644 --- a/tools/DICe_TrackingMovieMaker.cpp +++ b/tools/DICe_TrackingMovieMaker.cpp @@ -269,14 +269,7 @@ int main(int argc, char *argv[]) { std::stringstream cine_ss; cine_ss << trimmed_cine_name << "_" << frame << ".cine"; DEBUG_MSG("Loading cine image " << cine_ss.str()); - DICe::Image img(cine_ss.str().c_str()); - // convert the image to an opencv mat: - Mat mat_img(img.height(),img.width(), CV_8UC1); - for(int_t y=0;y(y,x) = std::floor(img(x,y)); - } - } + Mat mat_img = utils::read_image(cine_ss.str().c_str()); Mat out_img(mat_img.size(), CV_8UC3); cvtColor(mat_img, out_img, cv::COLOR_GRAY2RGB);