필터 지우기
필터 지우기

the below code changes rgb image to grey ,can the same partision done without changing the image to grey??

조회 수: 2 (최근 30일)
dataTop = rgb2gray(data(1:240, :,:));
dataMiddle = rgb2gray(data(241:480, :, :));
dataBottom = rgb2gray(data(481:end, :, :));

채택된 답변

Image Analyst
Image Analyst 2013년 4월 4일
편집: Image Analyst 2013년 4월 4일
I'm not sure of the question. You cannot do the same thing by doing something different, obviously. So you can't change the image to gray without changing the image to gray. If you don't want to call rgb2gray(), then don't.
  댓글 수: 9
vishnu andavar
vishnu andavar 2013년 4월 5일
sir,its like after diving into three,i need to check if any red object is present in all 3 sections,if yes in section then that section 1 motor should work,can this be done??

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by