필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

sir, plz help me to solve this errror, i attach my code here

조회 수: 1 (최근 30일)
kaavya subramani
kaavya subramani 2016년 8월 31일
마감: MATLAB Answer Bot 2021년 8월 20일
k=imread('D:\research work\clock.tiff');%192x192 double [rows, columns] = size(k); thresholds = k(2:3:end, 2:3:end); % Get centers of 3x3 % Make same size as data thresholds = imresize(thresholds, [rows, columns], 'nearest'); out = k > thresholds; C=mat2tiles(out,[3,3]); idx=[1 4 7 8 9 6 3 2]; B=cellfun(@(c)c(idx),C,'uniformOutput',false); B=bin2dec(vertcat(B{:})); result=reshape(B,size(C)); the errror is:Index exceeds matrix dimensions.
Error in @(c)c(idx)

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by