Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I created the ImageData.h file with these images. Please make the implementation part of ImageData.h. When you create it, divide it into ImageData.cpp and Test.cpp.
I created the ImageData.h file with these images. Please make the implementation part of ImageData.h. When you create it, divide it into ImageData.cpp and Test.cpp.
class ImageData { private: //private member variables int rows; int cols; unsigned char* pixelValues; unsigned char* pixelProcessed; public: //parameterized constructor void imageData(string fname) { //method defination } int imageProc(int Param) { //method defination } int imageWrite(string fname) { //method defination } //destructor ~imageData() { } };
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started