From: Carnë D. <car...@gm...> - 2010-08-30 13:02:57
|
On 29 August 2010 02:11, Baylis Shanks <bsh...@ho...> 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? |