Question: How to read a PGM(portable grey map) file and save it on a 2D array. The specific instruction is Image(std::string): The parameterized constructor accepts a
How to read a PGM(portable grey map) file and save it on a 2D array. The specific instruction is "Image(std::string): The parameterized constructor accepts a filename (string) as input. You can assume the file format will always be in PGM (Portable GrayMap). This constructor initializes the image from the data contained in the input PGM file."
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
