octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56141] [octave forge] (image) bwmorph option


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #56141] [octave forge] (image) bwmorph option 'endpoints' not implemented
Date: Thu, 18 Apr 2019 17:14:24 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

Update of bug #56141 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

There is a simple python code in
https://gist.github.com/bmabey/4dd36d9938b83742a88b6f68ac1901a6
that computes bwmorph (I, 'endpoints'). It has 3 steps:

1. convolve the image with [1 1 1; 1 0 1; 1 1 1]). The result is number of
neighbours of each pixel.
2. Setting zero in all zero pixels in the original image (i.e. count the
neigbours of each non zero elements).
3. Find the pixels with only 1 neighbour.

What do you think about this algorithm?  

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56141>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]