Counting line particales in an image

1 visualización (últimos 30 días)
Jared Joshi
Jared Joshi el 30 de Jun. de 2020
Respondida: darova el 1 de Jul. de 2020
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.

Respuestas (1)

darova
darova el 1 de Jul. de 2020
  • binarize image
  • use imopen to remove thin objects (lines)
  • detect lines
  • use bwlabel to calculate the number of lines

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by