[Insight-developers] Incorrect Docs for itkImageRegionMultidimensionalSplitter
Kevin H. Hobbs
hobbsk at ohiou.edu
Mon Jul 14 09:11:28 EDT 2008
The doxygen for
itkImageRegionMultidimensionalSplitter<blah>::GetNumberOfSplits says
"If the image region can support that number of subregions, that number is
returned. Otherwise, the maximum number of splits a region can support will
be returned." And it says that "This method returns a number less than or
equal to the requested number of pieces. " I don't think it actually does
either of these.
$ ./pieces 1
Requested: 1 Produced: 1
$ ./pieces 2
Requested: 2 Produced: 8
$ ./pieces 3
Requested: 3 Produced: 8
$ ./pieces 9
Requested: 9 Produced: 27
Maybe it should say that it returns either the requested number of
sub-regions, the maximum number of pieces, or if the requested number of
pieces can not be produced than it returns a number of pieces, larger than
the number requested, that can be produced .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pieces.cxx
Type: text/x-c++src
Size: 804 bytes
Desc: not available
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20080714/b224c333/attachment.cxx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20080714/b224c333/attachment.pgp>
More information about the Insight-developers
mailing list