man, 30 08 2010 kl. 14:02 +0100, skrev Carnë Draug: > On 29 August 2010 02:11, Baylis Shanks <bshan...@hotmail.com> wrote: > > I'm a little confused as to what the output format is; bwconncomp seems to > > think that it reverses the x and y coordinates. But in any case, either > > (3,1) is outside to image, or (2,3) is (because if it's reversed, then 2,3 > > becomes 3,2). > > By looking into the code, seems that the coordinates returned by > bwboundaries should be (rows, columns) at least when the object is > only one point. This is opposite to what the help text says. > > When the object is larger than 1, it uses __imboundary__ which is > written in C (I don't know how to read C so I can't help) so maybe the > coordinates are returned as (columns, rows) as the help text says. > > Should the help text or the function be corrected about the order of > the coordinates?
It seemed like rows and cols should be swapped in the call to '__imboundary__', so I've done this. Honestly, the code in 'bwboundary' is not really that good. If somebody want's to have a look and improve it, this would be most welcome. Also, we don't seem to be quite compatible with Matlab due to a bug in 'bwfill'. bwfill (logical ([0 1 1 ; 0 1 0]), "holes", 4) returns 1 1 1 1 1 1 but should return 0 1 1 0 1 0 If anybody has the time to look into this, it would be much appreciated. Søren ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev