Text archives Help
- From: tom fogal <tfogal@alumni.unh.edu>
- To: iv3d-users@sci.utah.edu
- Subject: [IV3D-USERS] Re: Re: Re: Re: Re: NRRD import
- Date: Thu, 21 Jan 2010 13:00:03 -0700
Tim Holy <holy@wustl.edu> writes:
>
On Thursday 21 January 2010 12:43:58 pm tom fogal wrote:
>
> It should be RGBA, RGBA, RGBA, etc.
>
>
>
> Here's a QVis format header that I use to load up an RGBA dataset into
>
> ImageVis3D:
>
>
Many thanks! The "UCHAR4" part of this header was a particularly helpful
>
tip.
>
>
I have verified that I can load a "scalar" qvis file just fine (using
>
UCHAR f or the format in the header). However, if I try to load an
>
RGBA, I get a crash with this message on the command line:
>
>
terminate called after throwing an instance of 'std::length_error'
>
what(): basic_string::resize
Yikes! That's a harsh one.
>
Here is my header file:
[snip]
>
and note that the .raw file is of the correct size (4*5*10*4):
[snip]
Thanks! I generated 800 bytes of garbage data and loaded it up with
your header file. It is, indeed, crashing. Sorry about that.
I will take a look at this and get back to you once I've determined
what's going wrong.
>
This is using a freshly-downloaded version of iv3d (.tar.gz format).
>
>
Any thoughts? I can send my .raw file (not attaching it because I
>
don't know if you like attachments on this list, but note it's only
>
800 bytes). It just contains values that are either 0 or 255.
I do not need it in this case, but for future reference && to document
it for the archives: small files as mentioned here are fine for the
list. For larger files, please use the `report an issue' dialog.
-tom
>
> You should hopefully be able to just change the filename and use that
>
> file. Place it in a .dat file so that ImageVis3D will recognize it as
>
> QVis format.
>
>
>
> -tom
>
>
>
> > > Am 21.01.2010 um 17:40 schrieb Tim Holy:
>
> > > > Hi again,
>
> > > >
>
> > > > In experimenting further with NRRD import, it also appears that the
>
> > > > NRRD importer does not make use of the "space directions" tag.
>
> > > > Consequently, the user has to manually enter the spacing along each
>
> > > > coordinate axis. There are a number of other NRRD0004 features that
>
> > > > could also be of potential interest.
>
> > > >
>
> > > > If I'm not barking up the wrong tree in terms of choosing NRRD as a
>
> > > > data interchange format (i.e., with respect to my previous post re
>
> > > > RGBA support), there's a chance I can help with simple
>
> > > > bugfixes/extensions (obviously, in consultation with those who have
>
> > > > developed iv3d in the first place!).
>
> > > >
>
> > > > Best,
>
> > > > --Tim
Archive powered by MHonArc 2.6.16.