Technical discussion about Matlab and issues related to Digital Signal Processing.
Sir,
How can I change the resolution of a bitmapped image from 390x350 to 200x200 inside a matlab .m file
thanks |
Hi Yusra, It looks like you only need to resize the image !! If that is the case, then use imresize: To resize your image "IM" to the size 200x200 Result = imresize(IM, [200,200]); Best regards, Raja' ---------------------------------- On Fri, May 9, 2008 at 1:37 PM, yusra al-najjar <u...@yahoo.com> wrote Sir, How can I change the resolution of a bitmapped image from 390x350 to 200x200 inside a matlab .m file thanks
Yusra, you may use this function: new_image = imresize(image, [200 200],'Antialiasing',true) You have to set the parameter 'Antialiasing' true in order to avoid posible aliasing (basically, it is a low-pass filtering after downsampling). Best regards. > > > > > > > > > > > > Sir, > � > How can I change the resolution of a bitmapped image from 390x350 to 200x200 inside a matlab .m file > � > thanks > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------