@Sourav Mishra: The c matrix is a double one when we assign construct it using zeros(). U can check the type of the variable by whos or in the variable details
I read some comments where were people complaining about getting 3 images, this is due to they are resizing RGB image while the code is for gray-scale images
Your all videos are really helpful, but I have a suggestion for you sister that you should ZOOM IN the code area, so it would be more clear for us. Thanks
Great Video ******* Ma'am please share videos related to the topics 1. detecting human in image and videos detecting parts of human body in images and videos Waiting for your response
hi rashi, first of all thank you for the video it helps a lot. i used your code to resize my pic but i dont understand why do i get the photo 3 times in one figure here is my code : l=imread('dani_smartphone2.jpg'); [rows,columns]=size(l); i=1; j=1; c=zeros(rows/2,columns/2); for x=1:2:rows for y=1:2:columns c(i,j)=l(x,y); j=j+1; end i=i+1; j=1; end figure,imshow(c/255); colormap(gray);
I think Matlab uses zero order hold resizing, so if you resized the image up to scale 4 in both directions, each pixel will be replicated 16 times in a completed square ( new large pixel ).
dear Miss rashi can you provide a code in which we can enhance a low resolution image to high resolution without loosing its quality. I shall be extremely thankful