Clear Filters
Clear Filters

How to Subtract two jpg image of different dimension?

1 view (last 30 days)
Imback = rand(3024, 4032, 3);
Imback1 = rand(480, 720, 3);
f=Imback(1:480, 1:720, 3);
Diff1 = uint8(imresize(Imback,[480 720 3])-Imback1);
i am getting error

Accepted Answer

Walter Roberson
Walter Roberson on 11 Mar 2019
use [480 720] not [480 720 3]

More Answers (0)

Categories

Find more on Read, Write, and Modify Image 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!