Small bug in Point3D()

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
Manik
Posts: 99
Joined: Fri Mar 05, 2004 1:00 pm
Location: INSERM U836, Grenoble

Small bug in Point3D()

Post by Manik »

Hi all,

I just used a modified version of the BV process to register ACPC coordinates on a T2 mri, and I used the Anatomist icon to get the AC coordinates.

While doing this, I changed the MRI palette settings (min/max inverted to see something more like a T1 mri) in Anatomist, and when I clicked on the Anatomist icon to get the coordinates of the point in BV, I got the message "Can't write data of type set of U32 in" in a dialog box.
After that, Anatomist still runs perfectly well, but BrainVisa is frozen.

I know I am probably the only one using a palette with settings min > max...
Manik Bhattacharjee
INSERM U836
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Well, I can't reproduce your problem (on the development version). The palette settings should not matter in coordinates passed from anatomist to BV (only coodinates are transfered, not voxel values) so I don't understand what is going on. Is U32 the data type of your image ?
Otherwise, setting the pallete max < min is perfectly legal, we sometimes use it.
Are you using a recent development version ? (I mean: there are sometimes temporary bugs in recent development versions...)

Denis
Manik
Posts: 99
Joined: Fri Mar 05, 2004 1:00 pm
Location: INSERM U836, Grenoble

Post by Manik »

I tried several times and I always had the same problem.
The development version is 20 days-old, and my image is a S16 GIS file.
I'll try again with a more recent version.
Manik Bhattacharjee
INSERM U836
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

OK, if it still causes an error, try to describe precisely how to reproduce it (it looked quite clear in your first message but I cannot get the same error so I must have missed something...)
Denis
Manik
Posts: 99
Joined: Fri Mar 05, 2004 1:00 pm
Location: INSERM U836, Grenoble

Post by Manik »

Hi,

I had forgotten about this problem, but yesterday, I tried to enter AC-PC points in Brainvisa/Anatomist, and I found a way to freeze BrainVisa with the same error as before.
- Open a "Enter AC-PC" process
- click on the Anatomist icon to enter AC
- in the MRI window, right click, "View/Select objects"
- in the new browser window, right-click on the MRI, Object Manipulation --> Color --> Texturing
- select "linear filtering" to get a smooth MRI
- click a point on the MRI
- click on the Anatomist icon in the BrainVisa process

Now you should see the error window...
Manik Bhattacharjee
INSERM U836
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Hi Manik,
Oh OK now I can make it crash too.
Well I see where it is: anatomist fails to write a specific data type when writing information about objects which are selected (in ObjectInfo command). I should fix this quick.
Denis
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Post by riviere »

Hi,
Well, I think I've fixed it now. It's on both stable and main versions (perforce server), everything will recompile...
Denis
Manik
Posts: 99
Joined: Fri Mar 05, 2004 1:00 pm
Location: INSERM U836, Grenoble

Post by Manik »

Thank you very much !
Manik Bhattacharjee
INSERM U836
Post Reply