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

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

[Octave-bug-tracker] [bug #50153] image package: bwperim result on 1x1in


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #50153] image package: bwperim result on 1x1input incorrect
Date: Mon, 30 Jan 2017 17:51:19 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Follow-up Comment #1, bug #50153 (project octave):

I have check all 2x2 logical matrices, and some 2x3 and 3x3, 
and it seems that bwperim is correct in all of them.
The only exception is 1x1, so what about a trivial check:


  if (numel(bw) == 1)
    perim = bw;
  else
    perim = (! imerode (bw, conn)) & bw;
  end 



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50153>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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