Subscripted assignment dimension mismatch
이전 댓글 표시
I have the following algorithm and i keep getting an error, can anyone help?
for i = 1:nSlice
D1 = squeeze(IMs(:, :, i));
range = double(max(D1(:)));
norm_im = double(D1)/range;
level = graythresh(norm_im);
new_level = level*c_range;
BW = (D1>new_level);
IM_s(:,:,i) = BW(:); % error line
end
댓글 수: 1
Geoff
2012년 4월 11일
Please edit your question and format the code as 'code' (highlight and press the 'code' button on the toolbar. Also, on which line does the error occur?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!