Modifying texture with SurfPaint

Questions about Anatomist manipulation

Moderators: riviere, denghien

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

Modifying texture with SurfPaint

Postby pron.a » Wed Mar 28, 2018 2:14 pm

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: 1358
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: Modifying texture with SurfPaint

Postby riviere » Wed Mar 28, 2018 6:08 pm

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

Postby pron.a » Thu Mar 29, 2018 7:52 am

Hello Denis,

thank for you answer
Have a good day :)

Alex


Return to “Anatomist”

Who is online

Users browsing this forum: No registered users and 12 guests