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="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; 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%;" id="avg_ls_inline_popup">
</div>