diff --git a/src/osgPlugins/dicom/ReaderWriterDICOM.cpp b/src/osgPlugins/dicom/ReaderWriterDICOM.cpp index ce6cfc209..40177beaa 100644 --- a/src/osgPlugins/dicom/ReaderWriterDICOM.cpp +++ b/src/osgPlugins/dicom/ReaderWriterDICOM.cpp @@ -117,7 +117,7 @@ class ReaderWriterDICOM : public osgDB::ReaderWriter if ((*itr)[0]=='.') { - osg::notify(osg::NOTICE)<<"Ignoring tempory file "<<*itr< #include +#include namespace osgVolume { @@ -267,6 +268,17 @@ void RayTracedTechnique::init() } osg::ref_ptr tf_texture = new osg::Texture1D; tf_texture->setImage(tf->getImage()); + +#if 0 + osgDB::writeImageFile(*(tf->getImage()),"tf.png"); + osg::notify(osg::NOTICE)<<"imageLayer->getTexelOffset()[3]="<getTexelOffset()[3]<getTexelScale()[3]="<getTexelScale()[3]<getMinimum()="<getMinimum()<getMaximum()="<getMaximum()<setResizeNonPowerOfTwoHint(false); tf_texture->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR); tf_texture->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);