Question: I would like to ask you to divide the source code into three image.h / image.cpp / main.cpp. Also please provide a brief explanation of
I would like to ask you to divide the source code into three image.h / image.cpp / main.cpp. Also please provide a brief explanation of the implementation method and code.

Prob. 1: We want to convert it to an image managing class as following class diagram 1501 image Data int rows int cols unsigned char* pixelValues ll image data storage unsigned char* pixelProcessed ll processed image storage imageData (string fname) constructor int imageProc (int Param) processing int imageWrite(string fname) ll save processed image mageData (void) //destructor In imageProc, you can add "image binarization" and your own method Prob. 2: Validate your method in a main function [50]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
