[Insight-users] [ITK Community] ImageRegistrationHistogramPlotter Not Working
Emma Saunders
emmasaunders123 at gmail.com
Wed Dec 4 05:10:05 EST 2013
Hi ,
Im in putting two 3D float volumes and change the pixel and dimensions
accordingly.
I may be a little confused here, is the RescaledOutputImage the 2D
histogram or the image itself, when I use
typedef itk::Image< unsigned char, 3 > RescaledOutputImageType;
Things seem to work?
On Tue, Dec 3, 2013 at 8:43 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
> What is your input data?
>
>
> On Tue, Dec 3, 2013 at 12:47 PM, Emma Saunders
> <emmasaunders123 at gmail.com> wrote:
> > Hi Bill,
> >
> > 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.
> >
> > The histograms are still being written but for the very first one I get
> an
> > error
> >
> > Exception thrown
> > itk::ExceptionObject (0x7f9c88014c90)
> > Location: "void
> > itk::ImageBase<VImageDimension>::ComputeIndexToPhysicalPointMatrices()
> [with
> > unsigned int VImageDimension = 2u]"
> > File:
> >
> /vol/ITKVTKsrc/ITKLatestRelease/ITKLatestReleaseb/ITK/Modules/Core/Common/include/itkImageBase.hxx
> > Line: 189
> > Description: itk::ERROR: Image(0x7f9c8800b1f0): A spacing of 0 is not
> > allowed: Spacing is [0, 0.0380726]
> >
> >
> >
> > Any ideas.
> >
> > Thanks
> >
> > Emma
> >
> >
> >
> >
> >
> >
> > On Tue, Dec 3, 2013 at 4:35 PM, Bill Lorensen <bill.lorensen at gmail.com>
> > wrote:
> >>
> >> Emma,
> >>
> >> Try this patch:
> >> http://review.source.kitware.com/#/c/13671/
> >>
> >> BTW, please keep the list posted in your replies.
> >>
> >> Bill
> >>
> >> On Tue, Dec 3, 2013 at 10:53 AM, Bill Lorensen <bill.lorensen at gmail.com
> >
> >> wrote:
> >> > Emma,
> >> >
> >> > I have found the problems with that example. I am in the process of
> >> > repairing it. Once I have it fixed, I'll send to a link to the gerrit
> >> > patch.
> >> >
> >> > Bill
> >> >
> >> >
> >> > On Tue, Dec 3, 2013 at 10:48 AM, Emma Saunders
> >> > <emmasaunders123 at gmail.com> wrote:
> >> >> Hi Bill
> >> >>
> >> >> I am using ITKv4 which was updated from the git repository a couple
> of
> >> >> months back, not sure how to find out which specific sub version I am
> >> >> using,
> >> >> if this helps?
> >> >>
> >> >> Thanks
> >> >>
> >> >> Emma
> >> >>
> >> >>
> >> >> On Tue, Dec 3, 2013 at 3:01 PM, Bill Lorensen <
> bill.lorensen at gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> Emma,
> >> >>>
> >> >>> What version of ITK are you using?
> >> >>>
> >> >>> Bill
> >> >>>
> >> >>>
> >> >>> On Tue, Dec 3, 2013 at 6:48 AM, Emma Saunders
> >> >>> <emmasaunders123 at gmail.com>
> >> >>> wrote:
> >> >>> > Hi all Im recieving errors when running
> >> >>> > ImageRegistrationHistogramPlotter.cxx.
> >> >>> >
> >> >>> > I am using the examples as indicated in the ITK software guide yet
> >> >>> > receive
> >> >>> > the errors of
> >> >>> >
> >> >>> > "A spacing of 0 is not allowed:"
> >> >>> >
> >> >>> > when writing the joint histogram prior to and after registration,
> >> >>> > also
> >> >>> > the
> >> >>> > joint histogram after every iteration appears to be the same for
> >> >>> > each
> >> >>> > iteration of the image.
> >> >>> >
> >> >>> > Does anyone else have a working example they are willing to share.
> >> >>> >
> >> >>> > Thanks
> >> >>> >
> >> >>> > Emma
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > _____________________________________
> >> >>> > Powered by www.kitware.com
> >> >>> >
> >> >>> > Visit other Kitware open-source projects at
> >> >>> > http://www.kitware.com/opensource/opensource.html
> >> >>> >
> >> >>> > Kitware offers ITK Training Courses, for more information visit:
> >> >>> > http://www.kitware.com/products/protraining.php
> >> >>> >
> >> >>> > Please keep messages on-topic and check the ITK FAQ at:
> >> >>> > http://www.itk.org/Wiki/ITK_FAQ
> >> >>> >
> >> >>> > Follow this link to subscribe/unsubscribe:
> >> >>> > http://www.itk.org/mailman/listinfo/insight-users
> >> >>> >
> >> >>> > _______________________________________________
> >> >>> > Community mailing list
> >> >>> > Community at itk.org
> >> >>> > http://public.kitware.com/cgi-bin/mailman/listinfo/community
> >> >>> >
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>> Unpaid intern in BillsBasement at noware dot com
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Unpaid intern in BillsBasement at noware dot com
> >>
> >>
> >>
> >> --
> >> Unpaid intern in BillsBasement at noware dot com
> >
> >
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20131204/849b82c8/attachment.htm>
More information about the Insight-users
mailing list