diff --git a/src/bayer_image.cpp b/src/bayer_image.cpp index 3f7e6c4..a8be486 100644 --- a/src/bayer_image.cpp +++ b/src/bayer_image.cpp @@ -41,10 +41,10 @@ bayer_image::bayer_image( const std::string& bayer_image_path ) // Create CV mat // https://answers.opencv.org/question/105972/de-bayering-a-cr2-image/ // https://www.libraw.org/node/2141 - raw_image = cv::Mat( width, height, CV_16U, libraw_processor->imgdata.rawdata.raw_image ).clone(); + raw_image = cv::Mat( height, width, CV_16U, libraw_processor->imgdata.rawdata.raw_image ).clone(); // changed the order of width and height // 2x2 box filter grayscale_image = box_filter_2x2( raw_image ); } -} \ No newline at end of file +}