[vtkusers] Resizing by output
Andrej Gluhov
realandron at gmail.com
Mon Jul 19 13:19:27 EDT 2010
If the output DICOM two different ways:
1. m_DicomReader.SetFileName (m_strFilePath);
m_DicomReader.Update ();
vtkImageMapper DicomMapper = new vtkImageMapper ();
DicomMapper.SetInputConnection (m_DicomReader.GetOutputPort ());
DicomMapper.SetColorWindow (255.0);
DicomMapper.SetColorLevel (127.5);
m_DicomActor.SetMapper (DicomMapper); m_imageViewer.GetRenderer ().
AddActor (m_DicomActor);
2. m_DicomReader.SetFileName (m_strFilePath);
m_DicomReader.Update ();
m_imageViewer.SetInputConnection (m_DicomReader.GetOutputPort ());
In the second case, the image is compressed and does not correspond to their
size. Because of this, I fail to get the correct value of the pixel with
mouse clicks. Does anyone know how this can be overcome?
--
С Уважением,
Андрей.
Best regards, Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100719/3c2f7214/attachment.htm>
More information about the vtkusers
mailing list