Write MIPS function that will 1) read in an image name (gray level image in bina
ID: 3803177 • Letter: W
Question
Write MIPS function that will
1) read in an image name (gray level image in binary format), the number of rows and the number of columns
2) using a function read in the image (.bin file, see code below)
3) using a function compute its histogram (see code below)
4) using a function then output the histogram (see expected output below)
You can assume the image size is no larger than 500x500.
Expected output at end of page
REFERNCE C FILES
END OF FILE histogram.c
Expected output:
Thank you and please comment if you need any more info
Explanation / Answer
Image (int rows, int cols)
Image (String filename, const ImageReaderWriter *reader)
void destroyed_msg ()
Define the basic things needed by any Object.
cv::Mat & get_data ()
em::ImageHeader & get_header ()
FloatRange get_min_and_max_values () const
String get_name () const
double operator() (int i, int j) const
void read (String filename, const ImageReaderWriter *reader)
void set_data (const cv::Mat &mat)
void set_name (const String &name)
void set_size (int rows, int cols)
void set_size (Image *img)
void set_value (double val)
void set_value (int i, int j, double val)
void set_zeros ()
void show (std::ostream &out) const
void update_header ()
void write (const String &filename, const ImageReaderWriter *writer)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.