can I resize an image with factors 15.5 or only just integer number?
3 views (last 30 days)
Show older comments
can I resize an image with factors 15.5 or only just integer number? I tried imresize code but gives me errors, if anyone has another solution could you plz help me.
0 Comments
Answers (2)
Image Analyst
on 26 Jan 2014
You can do fractional amounts, as well as specify the number of output rows and columns. Show us your code and the error message (ALL the red text, not just some of it).
1 Comment
Image Analyst
on 26 Jan 2014
This works:
img = imread('cameraman.tif');
bigImage = imresize(img, 15.5);
Walter Roberson
on 26 Jan 2014
imresize() will accept a non-integer scale; you could also use the scale to calculate the desired number of rows and columns and pass that into imresize()
What error do you encounter?
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!