Answered You can hire a professional tutor to get the answer.
Write a MATLAB function which computes the 2D joint histogram, GXY ,of a pair of images, X and Y, of equal size.
1.Write a MATLAB function which computes the 2D joint histogram, GXY ,of a pair of images, X and Y, of equal size. Test it on the red and greencomponents of the Queen Butterfly image found on the class homepage.Display the joint histogram, GXY , as a grey level image.
2. Write a MATLAB function which, given a joint histogram, GXY , returns themarginal histograms, GX and GY . Using the Cactus image, verify that themarginal histograms you compute are the same as those computed usingthe 1D histogram function found on the class homepage.