[vtk-developers] DICOM Viewer + Labeling tool, Image labeling and extracting
Minsuk Park
ashtonpark7 at gmail.com
Thu Feb 8 20:02:43 EST 2018
Hi,
I am trying to build SW which supports DICOM 3D Image viewer.
As like other DICOM viewers, I want to display 3 slices(Axial, Coronal,
Sagittal) and 3D rendering image.
I made it by extracting all the section images from series of DICOM
data and building it as a one 3D vtkImageData.
I can show every slice images and 3D rendering model.
<<CODE>>
for (int sliceType = 0; sliceType < 3; sliceType++) {
switch (sliceType) {
case AXIAL:
m_SliceIndex[sliceType] = (ext[4] + ext[5]) / 2;
break;
case CORONAL:
m_SliceIndex[sliceType] = (ext[2] + ext[3]) / 2;
break;
case SAGITTAL:
m_SliceIndex[sliceType] = (ext[0] + ext[1]) / 2;
break;
}
m_VolumeSlice[sliceType] = vtkSmartPointer<vtkImageReslice>::New();
m_VolumeSlice[sliceType]->SetInputData(m_ImageData);
m_VolumeSlice[sliceType]->SetOutputDimensionality(2);
m_VolumeSlice[sliceType]->SetResliceAxes(GetResliceMatrix(sliceType,
m_SliceIndex[sliceType]));
m_VolumeSlice[sliceType]->Update();
m_SliceActor[sliceType] = vtkSmartPointer<vtkImageActor>::New();
m_SliceActor[sliceType]->GetMapper()->SetInputData(m_VolumeS
lice[sliceType]->GetOutput());
}
<</CODE>>
However, I hope to paint(label) on three slices each by each and hope this
can reflect real-timely on other 2 slices and 3d rendered image.
The problem is, I am trying to find it in the section of "Interactor" and
"widget" but I could not find perfect solutions,
Also, I think it might not be an answer because Interactors are connected
with vtk Window, not vtk Image data.
Is there anyone know how to paint on the images(not window) and extract
only the painted part with the same size of the original 3D image?
Also, how can I use a pen(or brush, anything to mark on the image)?
Thank you in advance
Best,
Minsuk
--
------------------------------------------------------------
--------------------------------------------------
*Minsuk Park*
Mobile: +82-10-7329-9912
Email: ashtonpark7 at gmail.com
------------------------------------------------------------
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20180209/efc085b3/attachment.html>
More information about the vtk-developers
mailing list