how can i make use of sliding window to separate r,g,b channels?
조회 수: 1 (최근 30일)
이전 댓글 표시
good day all I am working on optic disc localization,i wanted to know ,how to implement sliding window technique using [80 80] pixels over an retinal image and with every moving window i would separate the r,g,b channels and obtain histogram of each channel
댓글 수: 0
답변 (1개)
Image Analyst
2014년 1월 20일
See the FAQ : http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F
Another snippet which may be useful for you:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% Recombine separate color channels into a single, true color RGB image.
rgbImage = cat(3, redChannel, greenChannel, blueChannel);
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!