Modifying texture with SurfPaint

Questions about Anatomist manipulation

Moderators: denghien, riviere

Post Reply
pron.a
Posts: 22
Joined: Mon Feb 22, 2016 10:09 am

Modifying texture with SurfPaint

Post by pron.a »

Dear Anatomist experts,

I am modifying an existing label texture using Anatomist 4.5.0. The original value of the Texture is 100 for drawn parts and 0 elsewhere.
When opening and modifying the texture with SurPaint ( for example adding vertices with value 100) , I noticed that after saving the value registered is not exactly the same , i.e. 99.999999. I just rounded the values not to be blocked but I guess it can be annoying when extracting precise values.

Have a good day

Alex
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: Modifying texture with SurfPaint

Post by riviere »

Hi,
For 3D rendering reasons, textures are generally rescaled with values between 0 and 1. Scaling factors are kept, and transformed back to real values when the texture is saved or converted to other objects. But these operations may induce rounding issues, as they are float32 values. I don't remember if the surfpaint toolbox can work with int values textures or not - it could be a way to avoid this issue.
Denis
pron.a
Posts: 22
Joined: Mon Feb 22, 2016 10:09 am

Re: Modifying texture with SurfPaint

Post by pron.a »

Hello Denis,

thank for you answer
Have a good day :)

Alex
Post Reply