<div dir="ltr">Hi Minsuk,<div>might any of the examples under the Medical category be of help?</div><div><a href="https://lorensen.github.io/VTKExamples/site/Cxx/#medical">https://lorensen.github.io/VTKExamples/site/Cxx/#medical</a><br></div><div><br></div><div>JON HAITZ</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">--<br><br></div></div>
<br><div class="gmail_quote">On 9 February 2018 at 02:02, Minsuk Park <span dir="ltr"><<a href="mailto:ashtonpark7@gmail.com" target="_blank">ashtonpark7@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Hi,</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I am trying to build SW which supports DICOM 3D Image viewer.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">As like other DICOM viewers, I want to display 3 slices(Axial, Coronal, Sagittal) and 3D rendering image.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I made it by extracting all the section images from series of DICOM data and building it as a one 3D vtkImageData.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">I can show every slice images and 3D rendering model.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><<CODE>></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div><span style="white-space:pre-wrap">   </span>for (int sliceType = 0; sliceType < 3; sliceType++) {</div><div><span style="white-space:pre-wrap">         </span>switch (sliceType) {</div><div><span style="white-space:pre-wrap">             </span>case AXIAL:</div><div><span style="white-space:pre-wrap">                      </span>m_SliceIndex[sliceType] = (ext[4] + ext[5]) / 2;</div><div><span style="white-space:pre-wrap">                 </span>break;</div><div><span style="white-space:pre-wrap">           </span>case CORONAL:</div><div><span style="white-space:pre-wrap">                    </span>m_SliceIndex[sliceType] = (ext[2] + ext[3]) / 2;</div><div><span style="white-space:pre-wrap">                 </span>break;</div><div><span style="white-space:pre-wrap">           </span>case SAGITTAL:</div><div><span style="white-space:pre-wrap">                   </span>m_SliceIndex[sliceType] = (ext[0] + ext[1]) / 2;</div><div><span style="white-space:pre-wrap">                 </span>break;</div><div><span style="white-space:pre-wrap">           </span>}</div><div><br></div><div><span style="white-space:pre-wrap">               </span>m_VolumeSlice[sliceType] = vtkSmartPointer<vtkImageReslic<wbr>e>::New();</div><div><span style="white-space:pre-wrap">             </span>m_VolumeSlice[sliceType]->SetI<wbr>nputData(m_ImageData);</div><div><span style="white-space:pre-wrap">               </span>m_VolumeSlice[sliceType]->SetO<wbr>utputDimensionality(2);<span style="white-space:pre-wrap">             </span></div><div><span style="white-space:pre-wrap">         </span>m_VolumeSlice[sliceType]->SetR<wbr>esliceAxes(GetResliceMatrix(sl<wbr>iceType, m_SliceIndex[sliceType]));</div><div><span style="white-space:pre-wrap">         </span>m_VolumeSlice[sliceType]->Upda<wbr>te();</div><div><span style="white-space:pre-wrap">                </span>m_SliceActor[sliceType] = vtkSmartPointer<vtkImageActor><wbr>::New();</div><div><span style="white-space:pre-wrap">                </span>m_SliceActor[sliceType]->GetMa<wbr>pper()->SetInputData(m_VolumeS<wbr>lice[sliceType]->GetOutput());</div><div><span style="white-space:pre-wrap">        </span>}</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><</CODE>></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">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.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">The problem is, I am trying to find it in the section of "Interactor" and "widget" but I could not find perfect solutions,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Also, I think it might not be an answer because Interactors are connected with vtk Window, not vtk Image data.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">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?</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Also, how can I use a pen(or brush, anything to mark on the image)?</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Thank you in advance</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Best,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Minsuk</div><span class="HOEnZb"><font color="#888888">

<br clear="all"><div><br></div>-- <br><div class="m_6519474033552640085m_7057185690645093005gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><font color="#000000">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</font></div><div style="font-size:12.8px"><font color="#000000"><b>Minsuk Park</b></font></div><div style="font-size:12.8px"><font color="#000000">Mobile: +82-10-7329-9912</font></div><div style="font-size:12.8px"><font color="#000000">Email: <a href="mailto:ashtonpark7@gmail.com" target="_blank">ashtonpark7@gmail.com</a></font></div><div style="font-size:12.8px"><span style="color:rgb(0,0,0)">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------------</span></div></div></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div></div>