<div dir="ltr">Hi Bill,<div><br></div><div>That works great for the 2D example, I would like to use for 3D so change Dimension to 2 but keep typedef itk::Image< unsigned char, 2 > RescaledOutputImageType, as dimension 2.</div>
<div><br></div><div style>The histograms are still being written but for the very first one I get an error</div><div style><br></div><div style><div>Exception thrown </div><div>itk::ExceptionObject (0x7f9c88014c90)</div><div>
Location: "void itk::ImageBase<VImageDimension>::ComputeIndexToPhysicalPointMatrices() [with unsigned int VImageDimension = 2u]" </div><div>File: /vol/ITKVTKsrc/ITKLatestRelease/ITKLatestReleaseb/ITK/Modules/Core/Common/include/itkImageBase.hxx</div>
<div>Line: 189</div><div>Description: itk::ERROR: Image(0x7f9c8800b1f0): A spacing of 0 is not allowed: Spacing is [0, 0.0380726]</div><div><br></div></div><div style><br></div><div style><br></div><div style>Any ideas.</div>
<div style><br></div><div style>Thanks</div><div style><br></div><div style>Emma</div><div style><br></div><div style><br></div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Dec 3, 2013 at 4:35 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Emma,<br>
<br>
Try this patch:<br>
<a href="http://review.source.kitware.com/#/c/13671/" target="_blank">http://review.source.kitware.com/#/c/13671/</a><br>
<br>
BTW, please keep the list posted in your replies.<br>
<span class="HOEnZb"><font color="#888888"><br>
Bill<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Dec 3, 2013 at 10:53 AM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
> Emma,<br>
><br>
> I have found the problems with that example. I am in the process of<br>
> repairing it. Once I have it fixed, I'll send to a link to the gerrit<br>
> patch.<br>
><br>
> Bill<br>
><br>
><br>
> On Tue, Dec 3, 2013 at 10:48 AM, Emma Saunders<br>
> <<a href="mailto:emmasaunders123@gmail.com">emmasaunders123@gmail.com</a>> wrote:<br>
>> Hi Bill<br>
>><br>
>> I am using ITKv4 which was updated from the git repository a couple of<br>
>> months back, not sure how to find out which specific sub version I am using,<br>
>> if this helps?<br>
>><br>
>> Thanks<br>
>><br>
>> Emma<br>
>><br>
>><br>
>> On Tue, Dec 3, 2013 at 3:01 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Emma,<br>
>>><br>
>>> What version of ITK are you using?<br>
>>><br>
>>> Bill<br>
>>><br>
>>><br>
>>> On Tue, Dec 3, 2013 at 6:48 AM, Emma Saunders <<a href="mailto:emmasaunders123@gmail.com">emmasaunders123@gmail.com</a>><br>
>>> wrote:<br>
>>> > Hi all Im recieving errors when running<br>
>>> > ImageRegistrationHistogramPlotter.cxx.<br>
>>> ><br>
>>> > I am using the examples as indicated in the ITK software guide yet<br>
>>> > receive<br>
>>> > the errors of<br>
>>> ><br>
>>> > "A spacing of 0 is not allowed:"<br>
>>> ><br>
>>> > when writing the joint histogram prior to and after registration, also<br>
>>> > the<br>
>>> > joint histogram after every iteration appears to be the same for each<br>
>>> > iteration of the image.<br>
>>> ><br>
>>> > Does anyone else have a working example they are willing to share.<br>
>>> ><br>
>>> > Thanks<br>
>>> ><br>
>>> > Emma<br>
>>> ><br>
>>> ><br>
>>> ><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.php" target="_blank">http://www.kitware.com/products/protraining.php</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>
>>> > _______________________________________________<br>
>>> > Community mailing list<br>
>>> > <a href="mailto:Community@itk.org">Community@itk.org</a><br>
>>> > <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
>>> ><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Unpaid intern in BillsBasement at noware dot com<br>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
> Unpaid intern in BillsBasement at noware dot com<br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</div></div></blockquote></div><br></div>