the below code changes rgb image to grey ,can the same partision done without changing the image to grey??
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
dataTop = rgb2gray(data(1:240, :,:));
dataMiddle = rgb2gray(data(241:480, :, :));
dataBottom = rgb2gray(data(481:end, :, :));
채택된 답변
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
what i meant in the question is i need to divide a rgb image of 1024*720 to 1024*240 1204*240 1024*240 but by using above command it changes image to grey,i want to segmant my image without changing it into grey.
And what happens if, like I said, you simply don't call rgb2gray()?
if i don't call that the image doesn't get divided,right??but i need to divide the image,how can i do??
plz check this to understand what i am asking. http://www.mathworks.in/matlabcentral/answers/68433-how-to-divide-the-matlab-image-into-3-sections-or-boxs
In that case the poster needed a grayscale image, but you don't. So just try this:
dataTop = data(1:240, :,:);
dataMiddle = data(241:480, :, :);
dataBottom = data(481:end, :, :);
one more doubt,where do i need to copy the above code actually in the program??and how do i control the 3 data section at one time?
Copy it into the place in the program where you want to split the image into 3 images.
You can't control anything "at one time" unless you have the Parallel Processing Toolbox.
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??
See my color detection demo where I find red: http://www.mathworks.com/matlabcentral/fileexchange/31118-color-segmentation-by-delta-e-color-difference
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
참고 항목
2013년 4월 4일
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
