<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Ashok,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">here is an example to set pixel values:</div><div class="gmail_default"><font face="verdana, sans-serif"><a href="https://itk.org/ITKExamples/src/Core/Common/SetPixelValueInOneImage/Documentation.html">https://itk.org/ITKExamples/src/Core/Common/SetPixelValueInOneImage/Documentation.html</a></font><br></div><div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">But you probably want to read section <a href="https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch4.html#x45-500004.1">4.1 Data Representation/Images</a> of the ITK software guide.</font></div><div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">Regards,</font></div><div class="gmail_default"><font face="verdana, sans-serif">Dženan</font></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 30, 2018 at 1:41 PM Ashok Tiwari via Community <<a href="mailto:community@itk.org">community@itk.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;background-color:rgb(255,255,255)">Dear ITK-users, </span><br style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><br style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;background-color:rgb(255,255,255)">I'm a newbie in the field of Image processing. I'm curious about how to pull out all the voxel indexes (x, y, z) along with their data values from the 3d image. This 3D image matrix is a combination of .mhd and .raw files. I have my data stored in each voxel of raw image. And image is centered at origin (0, 0, 0).</span><br style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span><div><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;background-color:rgb(255,255,255)">I am interested to get all the voxel coordinates and associated data values for image analysis, may be using some loops. Could anyone tell me how to do that? Or, if you have an example code in your repository, could you please send it to me?</span><br style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><br style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;background-color:rgb(255,255,255)">Regards, </span><br style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;background-color:rgb(255,255,255)">Ashok T.</span></div></div>The ITK community is transitioning from this mailing list to <a href="http://discourse.itk.org" rel="noreferrer" target="_blank">discourse.itk.org</a>. Please join us there!<br>
________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="https://itk.org/mailman/listinfo/community" rel="noreferrer" target="_blank">https://itk.org/mailman/listinfo/community</a><br>
</blockquote></div>