On Sep 5, 2012, at 11:51 PM, Jordi Gutiérrez Hermoso wrote:

> regionprops does a bunch of things, most of which make sense for
> N-dimensional images. I attach a proposed diff to address this. Can
> anyone give me some review before I commit it?


Your changes seem good. A few comments (though not a complete review):

1) You check if you should use 'bwlabel' or 'bwlabeln'. Shouldn't this check 
rather be part of 'bwlabeln', i.e. for 2D inputs, 'bwlabeln' can just call 
'bwlabel' ?

2) Not all properties are meaningful for ND input. The previous code checked 
that the input was 2D and gave an error otherwise. You have removed this check, 
which makes sense given that we now support ND input. But shouldn't there be 
some input checking for properties that only work for 2D input?

3) I guess the documentation needs to be updated as well?

Other then that, I think your patch looks great!

Søren


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to