[Insight-developers] template over index and point in ImageBase.h
gang song
songgang97 at gmail.com
Wed Oct 13 18:07:10 EDT 2010
Hi,
I have a question about the prototype of some member function in ImageBase.h
Is it better to set template over index and point separately, in order
to avoid call index.CastFrom() / point.CastFrom() ? There are a bunch
of such functions.
Example:
change from
template<class TCoordRep>
void TransformContinuousIndexToPhysicalPoint(
const ContinuousIndex<TCoordRep, VImageDimension>& index,
Point<TCoordRep, VImageDimension>& point ) const
to
template<class TCoordRep1, class TTCoordRep2>
void TransformContinuousIndexToPhysicalPoint(
const ContinuousIndex<TCoordRep1, VImageDimension>& index,
Point<TCoordRep2, VImageDimension>& point ) const
Thanks
-Gang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101013/94b346f0/attachment.htm>
More information about the Insight-developers
mailing list