Hello I have an HW I need help with, it’s about The RGB image histogram tool and color solarization
you need to write a program to calculate the histogram of an image and modify image color values based on a given threshold value.
1. Ask a threshold value to the user for color solarization.
2. Calculate the histogram data of the image file using a Map container (map histogram) and store frequency information of each color channel (R,G,B).
3. Apply color solarization effect using the following pseudo-code
4. Calculate the histogram data of the modified image file.
5. Display the histogram data on the screen before and after applying the solarization and write the same histogram information into a text file as image_filename.bmp.txt.
I have attached a file with .cpp to start with and different images,
I’ll attach the pdf document which you must follow.
I attached 2 images separately because they are too big and couldn’t attach them, but please consider them part of the HW4.rar file
the program must be in c++
0 comments