Problem with imresize function
4 views (last 30 days)
Show older comments
Elliot Wyllie
on 1 Mar 2021
Answered: Elliot Wyllie
on 1 Mar 2021
Heres my code, I wasnt having an issue with this until i added the midterm function and all the parameters. When i hardcoded the pictures and numbers i needed it worked perfectly but now it keeps giving me an error on line 3. Im really new to matlab and I dont have an prior programming knowlege so im just generally confused here. Any help?
function [] = midterm(imageFile1,imageFile2, scale, margin)
IM2 = imresize(imageFile2, scale);
IM2(1:margin,:,:) = 255;
IM2(end-margin+1:end,:,:) = 255;
IM2(:,1:margin,:) = 255;
IM2(:,end-margin+1:end,:) = 255;
image(imageFile1)
hold on;
image(2337, 1000, IM2)
end
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!