hi how to fix this error?
古いコメントを表示
I don't know what happened with this :

回答 (1 件)
Walter Roberson
2015 年 9 月 7 日
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
2015 年 9 月 7 日
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
2015 年 9 月 7 日
編集済み: per isakson
2015 年 9 月 7 日
Walter Roberson
2015 年 9 月 8 日
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 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!