how to intersect two images

2 次查看(过去 30 天)
DB
DB 2017-1-30
a=imread('lathink.jpg'); b=imread('sobelthink.jpg'); c=bitand(a,b);
subplot(2,2,2), image(uint8(c)), title('Intersection'); subplot(2,2,3), image(uint8(a)), title('sobel'); subplot(2,2,4), image(uint8(b)), title('laplacian');
im writing this code but there is no proper working , can any one help me to intersect the two binary images .......?

回答(1 个)

Walter Roberson
Walter Roberson 2017-1-30
Jpeg cannot represent binary images. You probably have a color image that uses 0 and 255 and which probably also uses values between because jpeg blurs straight lines. You should avoid using jpeg to store images you want to analyze.

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by