<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yiv3693260638"><div id="yui_3_16_0_ym19_1_1472581726344_6926"><div style="background-color: rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1472581726344_6925"><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;"><span id="yui_3_16_0_ym19_1_1472581726344_8334">I am writing some ITK examples while learning it following different tutorials. I have </span>Ubuntu 14.04. I build these tools from the source: ITK 4.10, VTK 7.0, QT5.7 and CMake 3.6.1  </div><div dir="ltr" id="yui_3_16_0_ym19_1_1472581726344_8335" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;"><span id="yui_3_16_0_ym19_1_1472581726344_8336">In example 2, I wrote a simple GUI application that read a DICOM volume from a folder, displays it in a QVtkWidget, thresholds the slice and displays it in another QVtkWidget. Save the resulted thresholded volume in a new folder. </span>I had some problems that I was able to solve like the dark output and the flipping, see the code comments.</div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;"><span><br></span></div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;">My questions: <br></div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;"><span id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_15231">  1- Is there a way to filter and write all the images at once instead of using the for loop?</span></div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;"><span id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_15352">  2- Writing the way I did make the output volume lost some origin information i.e value, 0,0 . What did I do wrong? </span></div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;"><span id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_15232">  3- I read some posts about using QVtkWidget2 and  </span>QVtkWidget3 but I couldn't find them in my vtk build, is there some options I missed when I built vtk? </div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;">  4- How can I display a specific plane instead of the axial slices e.g. display a coronal slice.<br></div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;">  5- How can I get the voxel information when I point in the QVTkWidget? I am not sure if the mapping I used is correct.</div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;">Here is the link to the examples: </div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr"><a href="https://sites.google.com/site/ibraheemtutorials/classroom-news/itkexamples" class="edited-link-editor" id="yui_3_16_0_ym19_1_1472581726344_8722">GUI ITK Examples using VTK Qt5 and CMake - IbraheemTutorials</a><br></div><div id="yui_3_16_0_ym19_1_1472581726344_8806"><br></div><div id="yui_3_16_0_ym19_1_1472581726344_8934"><br></div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14996" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;">Actually, I am not sure if what I did is the correct way to combine QT, VTK and ITK so your comments are welcome.     </div><div style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;"></div><div id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14995" dir="ltr" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;"><br></div><div class="yiv3693260638signature" id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14908" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;">Best regards!</div><div class="yiv3693260638signature" id="yiv3693260638yui_3_16_0_ym19_1_1472543887723_14908" style="color: rgb(0, 0, 0); font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 16px;">Ibraheem</div></div></div></div></div></body></html>