Sliding a circular window on an image for feature extraction...

1 回表示 (過去 30 日間)
Khawaja Asim
Khawaja Asim 2011 年 12 月 3 日
I am working on retina images in matlab. I need to extract features in an image by sliding a circular window of diameter d, on whole image, pixel by pixel. I have worked with rectangular window. But I am unable to understand the concept and implementation that how circular will slide on image. Can anyone help me in understanding it? or write me the code for sliding circular window. Regards
  3 件のコメント
Khawaja Asim
Khawaja Asim 2011 年 12 月 3 日
I want to extract many features, like counting the number of blood vessel pixels, width of blood vessels, intensity etc.
Image Analyst
Image Analyst 2011 年 12 月 4 日
I'm not sure why this requires a circular window. Even if you did, many operations ask you to provide a kernel or structuring element where you could specify which pixels are to be considered and which ones are to be ignored.

サインインしてコメントする。

回答 (2 件)

Image Analyst
Image Analyst 2011 年 12 月 3 日
I suggest you use nlfilter(). If you don't have the Image Processing Toolbox, then you can use blockproc().

David Young
David Young 2011 年 12 月 4 日
If you know how to work with a sliding rectangular window, but you need to use a circular window instead, it might help to learn about roi-based processing, with a circular roi (assuming you have the Image Processing Toolbox).
You don't give enough detail about the kind of processing you want to do for us to give examples. However, have a look at the chapter on ROI-Based Processing in the IPT User's Guide. One example there uses an elliptical ROI, and a circular ROI is just a special case of that, so it shouldn't be too hard to adapt it.

Community Treasure Hunt

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

Start Hunting!

Translated by