How can I properly extract the features of a ferning pattern using image processing?

21 ビュー (過去 30 日間)
Using feature extraction, what can I do to distinguish the ferning pattern in a positive fern test? Attached is a sample image from https://commons.wikimedia.org/wiki/File:Positive_Fern_Test_.jpg .
  4 件のコメント
Image Analyst
Image Analyst 2025 年 11 月 2 日 3:58
Can you post images of all 3 types?
Maria Gabriella Andrea
Maria Gabriella Andrea 2025 年 11 月 2 日 11:42
@Image Analyst I cannot upload the exact images we currently have but I found images on the internet that are similar to them, which are in this folder [Similar Images]. I wasn't clear with my first comment but our goal is actually just two classes (positive and negative ferning). For images with vaginal discharge, if the samples have no fern patterns at all, they are just considered negative.

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

採用された回答

Tridib
Tridib 2025 年 10 月 27 日
編集済み: Tridib 2025 年 10 月 27 日
Hi @Maria Gabriella Andrea, to get started with extracting features from a ferning pattern, these steps might be helpful:
  • If the image is in color, first convert it to grayscale so you are only working with intensity values.
  • Focus on the main area of the image, which is typically a circular region in microscope images. Create a mask to isolate this main area and exclude the background.
  • Enhance the image contrast to make the ferning pattern stand out more clearly against the background.
  • Convert the enhanced image to black and white to highlight the ferning structures.
  • Use an automatic thresholding method, such as Otsu's method, to separate the pattern from the background.
  • Remove any small spots or noise that are not part of the actual pattern. Fill in any small holes or gaps within the pattern to improve its shape.
  • Finally, thin the pattern down to its skeleton to clearly reveal the branching structure.
  • Use region property tools to measure features like the area covered by the pattern, the length of its branches, and its overall shape. You can also examine texture features such as contrast and smoothness to further describe the pattern’s appearance.
Hope this helps!
  1 件のコメント
Maria Gabriella Andrea
Maria Gabriella Andrea 2025 年 11 月 1 日 8:06
Thank you for these steps and we will definitely try it. If extracting the features manually don't seem to work, is it possible for us to pre-train a neural network then use that for feature extraction? We don't have such extensive knowledge on this and we are still learning while doing this :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning for Image Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by