This may be of some help to you: <a href="http://www.itk.org/pipermail/insight-users/2008-May/025755.html">http://www.itk.org/pipermail/insight-users/2008-May/025755.html</a><div><br></div><div>There is also a QtImageViewer in InsightApplications/Auxiliary that might help.<br>
<br><div class="gmail_quote">On Thu, Jun 16, 2011 at 9:04 AM, john smith <span dir="ltr"><<a href="mailto:mkitkinsightuser@gmail.com">mkitkinsightuser@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello to all,<br><br>In my application I am using ITK and Qt to create my Gui and display the results.I want to ask something that may be easy. I have created a pointer of ITK which includes the raw data of my image<br><br>
ReaderType::Pointer reader = ReaderType::New();<br> reader->SetFileName(fileName.toStdString());<br><br> //get the size of image<br> reader->Update();<br> InputImageType::RegionType inputRegion =<br>
reader->GetOutput()->GetLargestPossibleRegion();<br><br> InputImageType::SizeType size = inputRegion.GetSize();<br> <br> // get the size of the hole 3D image<br> size_x = size[0];<br> size_y = size[1];<br>
<br>InputImageType::Pointer image = reader->GetOutput();<br><br>Now I want to pass this pointer to a pointer of Qt, which is responsible for displaying my image.But I do not want to use Get and Set pixel, but to use contents and address of memory.<br>
<br>QImage *image_Qt = new QImage;<br><br>I want to ask how could this be done. I hope somone could help me as I am confused.<br><br>Thanks in advance<br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>