The objective of the following code is to plot SNR of RGB image(well,the code illustrated id for gray scale since I could not do for RGB which is the ultimate goal) and y axix plots the mean error between clean and noisy image divided by the standard deviation of the clean image (in order to scale the error). The code generates error
??? Subscript indices must either be real positive
integers or logicals.
Error in ==> cr_t at 34
varra=var(var(CleanImg_normalized));
- Please help with the corrected code since I am getting a single value a dot as a plot instead of a line plot
- How to modify the code for RGB images
- Is there any significane of the integer number multipled for calculating SNR in db,I have seen 10,20 numbers most popularly used.