how to intersect two images

2 visualizzazioni (ultimi 30 giorni)
DB
DB il 30 Gen 2017
Risposto: Walter Roberson il 30 Gen 2017
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 .......?

Risposte (1)

Walter Roberson
Walter Roberson il 30 Gen 2017
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.

Categorie

Scopri di più su Images in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by