getting all the nearby pixels from a center pixel in image
5 views (last 30 days)
Show older comments
UTA on 3 Mar 2013
Answered: Uttiya Ghosh on 19 Jun 2020
Hi everyone, I have a quick question like this: there is an image,suppose with size of 320 * 240, and I extract a center pixel position of sub-window with size 31 * 21 from this image. Now, I want to get all the pixels location of this sub-window and rearrange it as a column. Is there some fast way to do this? Thank you very much!
Uttiya Ghosh on 19 Jun 2020
From my understanding, you want to convert a region of an image into a column vector. Refer to the code below:
You will receive the required Column Vector in JCol. You can change the sizes as per your requirements.
For more information, refer to the links below:
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!