[vtk-developers] DICOM Viewer + Labeling tool, Image labeling and extracting

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Fri Feb 9 02:33:16 EST 2018


Hi Minsuk,
might any of the examples under the Medical category be of help?
https://lorensen.github.io/VTKExamples/site/Cxx/#medical

JON HAITZ

--


On 9 February 2018 at 02:02, Minsuk Park <ashtonpark7 at gmail.com> wrote:

> 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
> ------------------------------------------------------------
> --------------------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtk-developers/attachments/20180209/a8c08d5f/attachment-0001.html>


More information about the vtk-developers mailing list