[ITK] [ITK-dev] Different 3D view for reading

Marco Dev marco.dev.open at gmail.com
Mon Nov 7 11:11:17 EST 2016


Hi dears,
why we have different 3D view from reading .mhd file or reading dicom files
through FixedPointVolumeRayCastMapperCT


for example :
dicom reader -->  vtkDICOMImageReader *dicomReader = vtkDICOMImageReader::
New();

    dicomReader->SetDirectoryName(dirname);

    dicomReader->Update();

    input=dicomReader->GetOutput();

    reader=dicomReader;


.

.

..

      colorFun->AddRGBPoint( -3024, 0, 0, 0, 0.5, 0.0 );

      colorFun->AddRGBPoint( -1000, .62, .36, .18, 0.5, 0.0 );

      colorFun->AddRGBPoint( -500, .88, .60, .29, 0.33, 0.45 );

      colorFun->AddRGBPoint( 3071, .83, .66, 1, 0.5, 0.0 );


      opacityFun->AddPoint(-3024, 0, 0.5, 0.0 );

      opacityFun->AddPoint(-1000, 0, 0.5, 0.0 );

      opacityFun->AddPoint(-500, 1.0, 0.33, 0.45 );

      opacityFun->AddPoint(3071, 1.0, 0.5, 0.0);


      mapper->SetBlendModeToComposite();

      property->ShadeOn();

      property->SetAmbient(0.1);

      property->SetDiffuse(0.9);

      property->SetSpecular(0.2);

      property->SetSpecularPower(10.0);

      property->SetScalarOpacityUnitDistance(0.8919);



===========================================================


mhd reader -- >

    vtkMetaImageReader *metaReader = vtkMetaImageReader::New();

    metaReader->SetFileName(fileName);

    metaReader->Update();

    input=metaReader->GetOutput();

    reader=metaReader;

.

.

.

.

.


    colorFun->AddRGBPoint( -3024, 0, 0, 0, 0.5, 0.0 );

      colorFun->AddRGBPoint( -1000, .62, .36, .18, 0.5, 0.0 );

      colorFun->AddRGBPoint( -500, .88, .60, .29, 0.33, 0.45 );

      colorFun->AddRGBPoint( 3071, .83, .66, 1, 0.5, 0.0 );


      opacityFun->AddPoint(-3024, 0, 0.5, 0.0 );

      opacityFun->AddPoint(-1000, 0, 0.5, 0.0 );

      opacityFun->AddPoint(-500, 1.0, 0.33, 0.45 );

      opacityFun->AddPoint(3071, 1.0, 0.5, 0.0);


      mapper->SetBlendModeToComposite();

      property->ShadeOn();

      property->SetAmbient(0.1);

      property->SetDiffuse(0.9);

      property->SetSpecular(0.2);

      property->SetSpecularPower(10.0);

      property->SetScalarOpacityUnitDistance(0.8919);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20161107/23c1c9ce/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dicomreader.png
Type: image/png
Size: 735267 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20161107/23c1c9ce/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mhdreader.png
Type: image/png
Size: 1240210 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20161107/23c1c9ce/attachment-0001.png>
-------------- next part --------------
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers


More information about the Community mailing list