- Are you getting any coding error?
- "an error Back Image has 3 dimensions", what does it means?
- Please ensure "Mask image, specified 2-D binary matrix of the same size as the first two dimensions of image first"
Regarding usage of imoverlay
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to overlay a rgb image over a binary image. I am getting an error Back Image has 3 dimensions. Please help.
댓글 수: 0
답변 (1개)
KALYAN ACHARJYA
2020년 11월 20일
See the Example:
data_bw=imbinarize(imread('eight.png'));
[r,c]=size(data_bw);
data_rgb=imresize(imread('B.jpeg'),[r,c]);
result=imoverlay(data_rgb,data_bw)
imshow(result);
Issues (May be)
The overlay result image also have 3 dimension map as RGB.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!