Hello Steffen,

 

I just committed a small security check which should solve the decrease
in rendering speed.

 

 

If you like you can just update the file: 

 

<YourSourceDir>\mitk\Core\Rendering\mitkSurfaceMapper2D.cpp

 

 

Or you can replace the lines 182 and 183 in the same file with:

 

      // check if the scalar range has been changed, e.g. manually, for
the data tree node, and rebuild the LUT if necessary.

      double* oldRange = lut->GetTableRange();

      if( oldRange[0] != scalarsMin || oldRange[1] != scalarsMax )

      {

        lut->SetTableRange(scalarsMin, scalarsMax);

        lut->Build();

      }

 

 

(The rebuild is necessary in some rare cases where the range changes
quite often, but was for sure not intended in every rendering cycle).

 

Best regards, 

Tobi Schwarz

 

 

------------------------------------------------------------

Tobias Schwarz
DKFZ
German Cancer Research Center (Deutsches Krebsforschungszentrum) 
Member of the Helmholtz Association
Division of Medical & Biological Informatics E130
Im Neuenheimer Feld 280
D-69120 Heidelberg

Phone: 49-(0)6221-42-2353
Fax: 49-(0)6221-42-2345
E-Mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Web: www.dkfz.de <http://www.dkfz.de> 

Confidentiality Note: This message is intended only for the use of the
named recipient(s) and may obtain confidential and/or privileged
information. If you are not the intended recipient, please contact the
sender and delete the message. Any unauthorized use of the information
contained in this message is prohibited.

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to