답변 (1개)

Walter Roberson
Walter Roberson 2015년 9월 7일

0 개 추천

In your code pushbutton4_Callback, you have two variables, image1 and image2. One of those two is an array of uint8 and the other of them is an array of double. In order to use bitxor, you have to convert the array of double into an array of uint8. For example, possibly
bitxor(image1, uint8(image2))

댓글 수: 4

pasxalis papakalas
pasxalis papakalas 2015년 9월 7일
this error
Walter Roberson
Walter Roberson 2015년 9월 7일
편집: Walter Roberson 2015년 9월 7일
bitor(image1(i-1,j), bitor(image1(i,j-1), bitor(image1(i+1,j), image1(i,j+1))))
In future please copy error messages as text (possibly in addition to images) so that people can copy your code instead of having to type it in by hand.
pasxalis papakalas
pasxalis papakalas 2015년 9월 7일
편집: per isakson 2015년 9월 7일
ok sorry for that.
in pdf
f(i,j) = g(i1,j)CORg(i,j1)CORg(i,j)CORg(i+1,j)CORg(i,j+1)
maybe wrong in syntax.. it is correct?
bitor(image1(i-1,j), bitor(image1(i,j-1), bitor(image1(i+1,j), image1(i,j+1))))
I do not recognize what COR is intended to mean. The code might be right, if COR stands for bitwise-OR . If COR is intended to mean XOR then
bitoxr(image1(i-1,j), bitxor(image1(i,j-1), bitxor(image1(i+1,j), image1(i,j+1))))

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2015년 9월 7일

댓글:

2015년 9월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by