[Insight-developers] Lots of new warnings: Adding an alternative GetInverse() method to the transform hierarchy.
Steve M. Robbins
steve at sumost.ca
Sat Jun 28 23:14:38 EDT 2008
On Sat, Jun 28, 2008 at 10:50:22PM -0400, Luis Ibanez wrote:
> This may help to find a better choice among the current options
> of API for GetInverse().
Among the options proposed, returning a pointer to the transformation
is most appealing to me:
virtual TransformBase::Pointer GetInverse() const
with the guarantee that the pointer is never null; i.e. that
non-invertibility is signalled by an exception.
In addition, I would propose that
virtual bool IsInvertible() const
be available so that programs that *do* want to check for
invertibility can do so without using a try/catch.
Regards,
-Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20080628/d067450c/attachment.pgp>
More information about the Insight-developers
mailing list