matlab code for comparing intensity values of each pixel in two images and then creating third image

조회 수: 1 (최근 30일)
want write a code to compare two image by comparing the intensity value of each pixel and then create the third image
my first image is I(i,j) secind image is IF(i,j) third image B(i,j)= 1 if I(i,j)>= IF(i,j); 0 therwise
where first image is the original image and the second image is the filtered image.
pls help me with the code asap

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2011년 5월 17일
variant
% "I" -> I1, "IF" -> I2
B = single(I1 >= I2);

카테고리

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