<div dir="ltr">Hi ,<div><br></div><div style>Im in putting two 3D float volumes and change the pixel and dimensions accordingly.</div><div style><br></div><div style>I may be a little confused here, is the RescaledOutputImage the 2D histogram or the image itself, when I use</div>
<div style><br></div><div style> typedef itk::Image< unsigned char, 3 > RescaledOutputImageType;<br></div><div style><br></div><div style>Things seem to work?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Dec 3, 2013 at 8:43 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">
What is your input data?<br>
<br>
<br>
On Tue, Dec 3, 2013 at 12:47 PM, Emma Saunders<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:emmasaunders123@gmail.com">emmasaunders123@gmail.com</a>> wrote:<br>
> Hi Bill,<br>
><br>
> That works great for the 2D example,  I would like to use for 3D so change<br>
> Dimension to 2 but keep  typedef itk::Image< unsigned char, 2 ><br>
> RescaledOutputImageType, as dimension 2.<br>
><br>
> The histograms are still being written but for the very first one I get an<br>
> error<br>
><br>
> Exception thrown<br>
> itk::ExceptionObject (0x7f9c88014c90)<br>
> Location: "void<br>
> itk::ImageBase<VImageDimension>::ComputeIndexToPhysicalPointMatrices() [with<br>
> unsigned int VImageDimension = 2u]"<br>
> File:<br>
> /vol/ITKVTKsrc/ITKLatestRelease/ITKLatestReleaseb/ITK/Modules/Core/Common/include/itkImageBase.hxx<br>
> Line: 189<br>
> Description: itk::ERROR: Image(0x7f9c8800b1f0): A spacing of 0 is not<br>
> allowed: Spacing is [0, 0.0380726]<br>
><br>
><br>
><br>
> Any ideas.<br>
><br>
> Thanks<br>
><br>
> Emma<br>
><br>
><br>
><br>
><br>
><br>
><br>
> On Tue, Dec 3, 2013 at 4:35 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> 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>
>><br>
>> Bill<br>
>><br>
>> On Tue, Dec 3, 2013 at 10:53 AM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> 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<br>
>> >> 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<br>
>> >>> <<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,<br>
>> >>> > also<br>
>> >>> > the<br>
>> >>> > joint histogram after every iteration appears to be the same for<br>
>> >>> > 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>
><br>
><br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</div></div></blockquote></div><br></div>