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: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #56141] [octave forge] (image) bwmorph option 'endpoints' not implemented
Date: Tue, 23 Apr 2019 12:21:16 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299

Follow-up Comment #16, bug #56141 (project octave):

I ran a quick script to test 3x3 arrays output in matlab. (fed it 0 to 511
converted to 9-digit binary, reshaped to 3x3, recorded which ones had 1 or 0
in the returned value).

so I could use this output in a manual function fed to makelut to generate a
look-up table that will emulate matlab's endpoints behavior. I'm hesitant to
do it that way because it's more-or-less flying blind without understanding
the ruleset behind the LUT. We wouldn't be able to troubleshoot anything, but
it would guarantee we are compatible with (this version of) matlab. 

Here are the 57 3x3 arrays that produce a '1' from find endpoints:


>> bw_endpoints_true
bw_endpoints_true(:,:,1) =
     0     0     0
     0     1     0
     0     0     0
bw_endpoints_true(:,:,2) =
     0     0     0
     0     1     0
     0     0     1
bw_endpoints_true(:,:,3) =
     0     0     0
     0     1     1
     0     0     0
bw_endpoints_true(:,:,4) =
     0     0     0
     0     1     1
     0     0     1
bw_endpoints_true(:,:,5) =
     0     0     1
     0     1     0
     0     0     0
bw_endpoints_true(:,:,6) =
     0     0     1
     0     1     1
     0     0     0
bw_endpoints_true(:,:,7) =
     0     0     1
     0     1     1
     0     0     1
bw_endpoints_true(:,:,8) =
     0     0     0
     0     1     0
     0     1     0
bw_endpoints_true(:,:,9) =
     0     0     0
     0     1     0
     0     1     1
bw_endpoints_true(:,:,10) =
     0     0     0
     0     1     1
     0     1     1
bw_endpoints_true(:,:,11) =
     0     0     1
     0     1     1
     0     1     1
bw_endpoints_true(:,:,12) =
     0     1     0
     0     1     0
     0     0     0
bw_endpoints_true(:,:,13) =
     0     1     1
     0     1     0
     0     0     0
bw_endpoints_true(:,:,14) =
     0     1     1
     0     1     1
     0     0     0
bw_endpoints_true(:,:,15) =
     0     1     1
     0     1     1
     0     0     1
bw_endpoints_true(:,:,16) =
     0     1     1
     0     1     1
     0     1     1
bw_endpoints_true(:,:,17) =
     0     0     0
     0     1     0
     1     0     0
bw_endpoints_true(:,:,18) =
     0     0     0
     0     1     0
     1     1     0
bw_endpoints_true(:,:,19) =
     0     0     0
     0     1     0
     1     1     1
bw_endpoints_true(:,:,20) =
     0     0     0
     0     1     1
     1     1     1
bw_endpoints_true(:,:,21) =
     0     0     1
     0     1     1
     1     1     1
bw_endpoints_true(:,:,22) =
     0     1     1
     0     1     1
     1     1     1
bw_endpoints_true(:,:,23) =
     0     0     0
     1     1     0
     0     0     0
bw_endpoints_true(:,:,24) =
     0     0     0
     1     1     0
     1     0     0
bw_endpoints_true(:,:,25) =
     0     0     0
     1     1     0
     1     1     0
bw_endpoints_true(:,:,26) =
     0     0     0
     1     1     0
     1     1     1
bw_endpoints_true(:,:,27) =
     0     0     0
     1     1     1
     1     1     1
bw_endpoints_true(:,:,28) =
     0     0     1
     1     1     1
     1     1     1
bw_endpoints_true(:,:,29) =
     0     1     1
     1     1     1
     1     1     1
bw_endpoints_true(:,:,30) =
     1     0     0
     0     1     0
     0     0     0
bw_endpoints_true(:,:,31) =
     1     1     0
     0     1     0
     0     0     0
bw_endpoints_true(:,:,32) =
     1     1     1
     0     1     0
     0     0     0
bw_endpoints_true(:,:,33) =
     1     1     1
     0     1     1
     0     0     0
bw_endpoints_true(:,:,34) =
     1     1     1
     0     1     1
     0     0     1
bw_endpoints_true(:,:,35) =
     1     1     1
     0     1     1
     0     1     1
bw_endpoints_true(:,:,36) =
     1     1     1
     0     1     1
     1     1     1
bw_endpoints_true(:,:,37) =
     1     0     0
     1     1     0
     0     0     0
bw_endpoints_true(:,:,38) =
     1     1     0
     1     1     0
     0     0     0
bw_endpoints_true(:,:,39) =
     1     1     1
     1     1     0
     0     0     0
bw_endpoints_true(:,:,40) =
     1     1     1
     1     1     1
     0     0     0
bw_endpoints_true(:,:,41) =
     1     1     1
     1     1     1
     0     0     1
bw_endpoints_true(:,:,42) =
     1     1     1
     1     1     1
     0     1     1
bw_endpoints_true(:,:,43) =
     1     0     0
     1     1     0
     1     0     0
bw_endpoints_true(:,:,44) =
     1     0     0
     1     1     0
     1     1     0
bw_endpoints_true(:,:,45) =
     1     0     0
     1     1     0
     1     1     1
bw_endpoints_true(:,:,46) =
     1     0     0
     1     1     1
     1     1     1
bw_endpoints_true(:,:,47) =
     1     0     1
     1     1     1
     1     1     1
bw_endpoints_true(:,:,48) =
     1     1     0
     1     1     0
     1     0     0
bw_endpoints_true(:,:,49) =
     1     1     1
     1     1     0
     1     0     0
bw_endpoints_true(:,:,50) =
     1     1     1
     1     1     1
     1     0     0
bw_endpoints_true(:,:,51) =
     1     1     1
     1     1     1
     1     0     1
bw_endpoints_true(:,:,52) =
     1     1     0
     1     1     0
     1     1     0
bw_endpoints_true(:,:,53) =
     1     1     0
     1     1     0
     1     1     1
bw_endpoints_true(:,:,54) =
     1     1     0
     1     1     1
     1     1     1
bw_endpoints_true(:,:,55) =
     1     1     1
     1     1     0
     1     1     0
bw_endpoints_true(:,:,56) =
     1     1     1
     1     1     0
     1     1     1
bw_endpoints_true(:,:,57) =
     1     1     1
     1     1     1
     1     1     0



    _______________________________________________________

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]