Acquisition Adapter does not support tranformations?

4 views
Skip to first unread message

Anant Vemuri

unread,
Mar 21, 2010, 9:51:59 PM3/21/10
to fw4spl-discuss
Hi,

Although the acquisition adapter sets the transform ID, from the
config, it does not seem that it does anything with the transform to
manipulate the acquisition. Could you please confirm for me if this is
a bug?

Thanks
Anant.

Nicolas P

unread,
Mar 22, 2010, 4:02:44 AM3/22/10
to fw4spl-...@googlegroups.com


2010/3/22 Anant Vemuri <anant...@gmail.com>


The transform Id is passed through to the embeded adaptor (reconstruction).

Anant Vemuri

unread,
Mar 22, 2010, 4:59:16 AM3/22/10
to fw4spl-...@googlegroups.com
I am not sure how its working. I am doing the following:

<adaptor id="myAcquisitionAdaptor" class="::visuVTKAdaptor::Acquisition" objectId="PatientAcq">
<config renderer="vtkRender1" picker="" transform="vtkTrf2"  />
</adaptor>

Do I need to create an updater service for Reconstruction?



To unsubscribe from this group, send email to fw4spl-discuss+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
Anant S. Vemuri
email: anant...@gmail.com

Nicolas P

unread,
Mar 22, 2010, 6:38:03 AM3/22/10
to fw4spl-...@googlegroups.com


2010/3/22 Anant Vemuri <anant...@gmail.com>

I am not sure how its working. I am doing the following:

<adaptor id="myAcquisitionAdaptor" class="::visuVTKAdaptor::Acquisition" objectId="PatientAcq">
<config renderer="vtkRender1" picker="" transform="vtkTrf2"  />
</adaptor>


Looks good to me. To observe an acquisition transformation, make sure you are actually working (or modifying) on vtkTrf2. Maybe you missed the notification ?
 

Do I need to create an updater service for Reconstruction?

No.

Nicolas P

unread,
Mar 22, 2010, 12:23:02 PM3/22/10
to fw4spl-...@googlegroups.com
Hmm, as Julien noticed to me, in the branch you are using (fw4spl_0.6) the reconstruction adaptor don't pass the transform. I patched it and it should be available on googlecode soon.

2010/3/22 Nicolas P <nico...@gmail.com>

Anant Vemuri

unread,
Mar 22, 2010, 7:23:44 PM3/22/10
to fw4spl-...@googlegroups.com
Thanks Nicolas.

To unsubscribe from this group, send email to fw4spl-discuss+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Anant Vemuri

unread,
Mar 23, 2010, 5:05:38 AM3/23/10
to fw4spl-discuss
Hi,

I pulled the latest change. It seems to be working, but when I try to
apply specific transformation with only translation on one of the
axis, I don't get any result. Only the rotation part of the transform
seems to be working. I apply the following transforms.

NOTE: the first nine parameters are rotation matrix parameters and the
last three translation. I append a final row of [0,0,0,1] to make it
4x4.


1,0,0,0,1,0,0,0,1,1000,0,0
1,0,0,0,1,0,0,0,1,2000,0,0
1,0,0,0,1,0,0,0,1,3000,0,0
1,0,0,0,1,0,0,0,1,4000,0,0
1,0,0,0,1,0,0,0,1,5000,0,0
1,0,0,0,1,0,0,0,1,6000,0,0
1,0,0,0,1,0,0,0,1,7000,0,0
1,0,0,0,1,0,0,0,1,8000,0,0
1,0,0,0,1,0,0,0,1,9000,0,0
1,0,0,0,1,0,0,0,1,10000,0,0
1,0,0,0,1,0,0,0,1,11000,0,0
1,0,0,0,1,0,0,0,1,12000,0,0
1,0,0,0,1,0,0,0,1,13000,0,0
1,0,0,0,1,0,0,0,1,14000,0,0
------------------------------
-1,0,0,0,-1,0,0,0,1,15000,0,0 <-- On this one it flips across as
expected. But in the rest of the cases, it does nothing at all.
------------------------------
1,0,0,0,1,0,0,0,1,16000,0,0 <-- Flips back to its original
position.
1,0,0,0,1,0,0,0,1,17000,0,0
1,0,0,0,1,0,0,0,1,18000,0,0
1,0,0,0,1,0,0,0,1,18000,0,0
1,0,0,0,1,0,0,0,1,20000,0,0
1,0,0,0,1,0,0,0,1,21000,0,0
1,0,0,0,1,0,0,0,1,22000,0,0
1,0,0,0,1,0,0,0,1,23000,0,0
1,0,0,0,1,0,0,0,1,24000,0,0

Is there something that I am missing? Also, want to confirm that the
only change you made was to the Reconstruction adaptor right, since I
just copied and pasted the latest code of ../visuVTKAdapator/
Reconstruction.cpp into my source.

Thanks!

Anant.

On Mar 23, 7:23 am, Anant Vemuri <anantvem...@gmail.com> wrote:
> Thanks Nicolas.
>
>
>
>
>
> On Tue, Mar 23, 2010 at 12:23 AM, Nicolas P <nicola...@gmail.com> wrote:
> > Hmm, as Julien noticed to me, in the branch you are using (fw4spl_0.6) the
> > reconstruction adaptor don't pass the transform. I patched it and it should
> > be available on googlecode soon.
>

> > 2010/3/22 Nicolas P <nicola...@gmail.com>
>
> >> 2010/3/22 Anant Vemuri <anantvem...@gmail.com>


>
> >> Hi,
>
> >>> Although the acquisition adapter sets the transform ID, from the
> >>> config, it does not seem that it does anything with the transform to
> >>> manipulate the acquisition. Could you please confirm for me if this is
> >>> a bug?
>
> >>> No, it does :
>

> >>http://code.google.com/p/fw4spl/source/browse/Bundles/LeafVisu/visuVT...


>
> >> The transform Id is passed through to the embeded adaptor
> >> (reconstruction).
>
> >  To unsubscribe from this group, send email to fw4spl-discuss+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.
>
> --
> Anant S. Vemuri

> email: anantvem...@gmail.com

Nicolas P

unread,
Mar 23, 2010, 7:03:49 AM3/23/10
to fw4spl-...@googlegroups.com
If i understand how you write your matrices, the first one of the given list is :

1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
1000 , 0, 0, 1

and should be

1, 0, 0, 1000,
0, 1, 0, 0,
0, 0, 1, 0,
0 , 0, 0, 1


I think that is the source of your problem.



2010/3/23 Anant Vemuri <anant...@gmail.com>

To unsubscribe from this group, send email to fw4spl-discuss+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Anant Vemuri

unread,
Mar 23, 2010, 7:23:42 AM3/23/10
to fw4spl-...@googlegroups.com
You are right, my bad...in the parser for the string, I copied part of the code but did not change the indices. I will fix it and try.

Reply all
Reply to author
Forward
0 new messages