Shankar, the main aim here is to change the luminance and color profile to the "optimum" levels. To perform those, MATLAB provides built-in functions - RGB2NTSC and NTSC2RGB, so that's why NTSC system is used in the codes.
can you explain the meaning of this line in your coding:-
why did there are more than one limit?
and can u explain what is this limit refer to? i mean is that refer to hue or saturation or intensity?
tq for ur response..
Thank you for your inquiry, you are actually right about SF. However, please note the comment in the code, that is you can use the sampling frequency to determine the actual number of decomposition levels J, I remember having a comment in the code about that in the same line where I defined J=7 (comment says you can use J=(log(SF/2)/log(2))-1;). I fixed the decomposition levels in the code sample you mentioned to make it easy for new users to understand it, but you can change that by using the commented equation.