[Insight-developers] updating TransformFactoryBase - module dependecy issue
Xiaoxiao Liu
xiaoxiao.liu at kitware.com
Mon Oct 31 13:48:50 EDT 2011
http://review.source.kitware.com/#change,3179
On Mon, Oct 31, 2011 at 1:13 PM, Xiaoxiao Liu <xiaoxiao.liu at kitware.com>wrote:
> Agree. Let's try method 1 then, will add you as the reviewer once the
> patch is ready.
>
> On Mon, Oct 31, 2011 at 1:11 PM, M Stauffer (V) <mstauff at verizon.net>wrote:
>
>> **
>> Hi Xiaoxiao,
>>
>> I think it makes sense to move TransformFactoryBase and TransformFactory
>> into ITKIOTransformBase, since it and TransformFactory only seem to be used
>> in the context of IO, at least w/in ITK itself. A separate new module like
>> I suggested makes less sense, I agree.
>>
>> If you have time to move TransformFactoryBase and TransformFactory to
>> ITKIOTransformBase then that'd be a great help, otherwise I can do it too
>> later this week.
>>
>> A separate IO method for DisplacementField w/out TransformFactory sounds
>> like it would be awkward, since another mechanism would be needed for
>> instantiating transforms during IO.
>>
>> -M
>>
>> ------------------------------
>> *From:* Xiaoxiao Liu [mailto:xiaoxiao.liu at kitware.com]
>> *Sent:* Monday, October 31, 2011 11:46 AM
>> *To:* M Stauffer (V)
>> *Cc:* ITK-dev-list-mstauff at ver
>> *Subject:* Re: [Insight-developers] updating TransformFactoryBase -
>> module dependecy issue
>>
>> Hi Michael,�
>> Ideally, �it would be great if we could move transform related
>> displacement field classes into�ITKTransform.
>> Then the dependency would be �one way: ITKDisaplcementField � depends on
>> ITKTransform.
>> And you could then add displacement field transforms into
>> TransformFactoryBase.
>> However, ITKDIsplacementField uses ITKImageFunction
>> (itkDisplacementFieldTransform needs
>> itkVectorInterpolateImageFunction),which would then bring
>> a new circular dependency between ITKImageFunction and �ITKTransform.
>>
>> So it's probably wise to either 1)�move ITKTransformFactoryBase classes
>> into ITKIOTransformBase module, and then you could add ITKDisplacementFiled
>> into�ITKIOTransformBase's dependency list.
>> Or 2) �have a IO method for DisplacementFiled without using
>> itkTransformFactory, and keep it clean and completely inside the
>> ITKDisplacementField module.
>> Your suggestion makes sense but the new module would end up with one or
>> two classes only.
>>
>> Let me know what do you think and I can help you proceed.
>>
>> -Xiaoxiao
>>
>>
>>
>> On Thu, Oct 27, 2011 at 1:19 PM, M Stauffer (V) <mstauff at verizon.net>wrote:
>>
>>> Hi,
>>>
>>> I'm updating TransformFactoryBase to add new transform
>>> (DisplacementFieldTransfrom and derived). However, these new transforms
>>> are in ITKDisplacementField module, which depends on ITKTransform.
>>> TransformFactory is in ITKTransform, so cannot include from
>>> ITKDisplacementField w/out a circular dependency. Should I move
>>> TransformFactoryBase and TransformFactory into its own module,
>>> ITKTransformFactory?
>>>
>>> -M
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://kitware.com/products/protraining.html
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-developers
>>>
>>
>>
>>
>> --
>>
>>
>> ---------------------------------------------
>> *Xiaoxiao Liu*, Ph.D.
>> R & D Engineer
>> Kitware Inc <http://www.kitware.com/>.
>> Clifton Park, NY
>> Phone: (518) 881-4924 �or �(518) 371-3971 x124
>>
>>
>>
>
>
> --
>
>
> ---------------------------------------------
> *Xiaoxiao Liu*, Ph.D.
> R & D Engineer
> Kitware Inc <http://www.kitware.com/>.
> Clifton Park, NY
> Phone: (518) 881-4924 or (518) 371-3971 x124
>
>
>
--
---------------------------------------------
*Xiaoxiao Liu*, Ph.D.
R & D Engineer
Kitware Inc <http://www.kitware.com/>.
Clifton Park, NY
Phone: (518) 881-4924 or (518) 371-3971 x124
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20111031/4955a388/attachment.htm>
More information about the Insight-developers
mailing list