how can we find distance between two image blocks?
이전 댓글 표시
i've divided the image into overlapping blocks.... i've calculated the correlation of these blocks with each other..
now i want two calculate the distance between these blocks like
distance between block 2 ans block 3.
block2=[24 42;107 110];
block3=[25 24; 55 56];
i've used the formula as:
distance=norm(block2-block3);
i got the following error
Undefined function 'norm' for input arguments of type 'uint8'.
how this type of error can be eliminated?
plz help me
채택된 답변
추가 답변 (1개)
HABTE TADESSE LIKASSA
2018년 10월 21일
편집: Image Analyst
2018년 10월 21일
norm_two = 8*norm(Y, 2)
Undefined function 'norm' for input arguments of type 'uint8'
How can I solve this please?
댓글 수: 1
Image Analyst
2018년 10월 21일
Cast Y to double first.
카테고리
도움말 센터 및 File Exchange에서 Neighborhood and Block Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!