Anyone know the code for GRID BASED SAMPLING

조회 수: 4 (최근 30일)
ANCY
ANCY 2013년 12월 27일
댓글: Image Analyst 2013년 12월 29일
If a full image is given.Then how can i find the image patches based on color.I read in a paper that grid based sampling is used for finding the patches in a an image based on color.Please share with me the code for subsampling of the image based on color.one knows the code for grid based sampling of images.Then please share it.

답변 (1개)

Image Analyst
Image Analyst 2013년 12월 27일
You mean like subsampling the image with points on a grid
stepX = 2; % Every other column pixel.
stepY = 3; % Every third row pixel.
subsampledImage = grayImage(1:stepY:end, 1:stepX:end);
??? Otherwise specify what you do mean.
  댓글 수: 2
ANCY
ANCY 2013년 12월 29일
If a full image is given.Then how can i find the image patches based on color.I read in a paper that grid based sampling is used for finding the patches in a an image based on color.Please share with me the code for subsampling of the image based on color.
Image Analyst
Image Analyst 2013년 12월 29일
I don't know what that is. You'd best follow the instructions in the paper. I do have some color segmentation demos in my File Exchange if you want to try standard thresholding approaches. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

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

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by