Counting line particales in an image

1 次查看(过去 30 天)
Hi, I need a code that can count the number of lines in the photo I've attracted. I've tried many times to write my one but non of them seem to work.

回答(1 个)

darova
darova 2020-7-1
  • binarize image
  • use imopen to remove thin objects (lines)
  • detect lines
  • use bwlabel to calculate the number of lines

标签

Community Treasure Hunt

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

Start Hunting!

Translated by