필터 지우기
필터 지우기

Info

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

Image Processing Help!

조회 수: 2 (최근 30일)
Manohar Vohra
Manohar Vohra 2016년 6월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
I just wanted to see if this would work so I can use it somewhere else but it doesn't, please help!
A = rgb2gray(imread('whiteParkTest.jpg'));
B = rgb2gray(imread('carParkSemiKey.jpeg'));
emptyParking = 0;
for i = 1 : (114) %rows
for j = 1 : (45) %col
C = A(i : (86 + i - 1), j : (105 + j - 1));
if (sum(sum((B == C)))) >= 9030
emptyParking = emptyParking + 1;
end
end
end
I want it to save emptyParking as 2

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by