[MINC-users] Very large dicom variables in the header crashing loni debabelizer.

Andrew Janke Andrew Janke <a.janke@gmail.com>
Wed Jul 20 21:44:05 2005


------=_Part_2979_277658.1121910147318
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Yes, try the attached script.

but use with caution!  It modifies the MINC file in place.

a

On 20/07/05, Dylan David Wagner <dwagne@bic.mni.mcgill.ca> wrote:
> Hi,
>=20
>      I've been trying to use the loni debabelizer to convert some minc
> files to nifti and/or analyze (couldn't find an in house converter for
> nifti, do we have one?). I've been finding that certain files crash it,
> other files aren't identified as MINC and a third group actually work!
>=20
>       The reason why some files crash the babelizer, or aren't
> identified, seems to have to do with long headers caused by some of the
> dicom variables in the minc header. At least that's the only difference
> I can discern.
>=20
>        Older mincfiles scanned before the Siemens got an upgrade are
> identified without fail. Aside from a few additional entries in the
> study variable, the main differences is the dicom variables are huge and
> the mincheader jumps from ~20kb to 700+ Kb.
>=20
>       Newer files scanned after the upgrade work if they've been
> preprocessed with the fmri preprocessing tools (which seems to eliminate
> the dicom entries from the header). Oddly enough if I use cygwin to do
> the preprocessing with the same minctools, the dicom entries in the
> header are preserved (and loni debabelizer crashes).
>=20
>       I'm guessing the fault lies with the Loni app, however does anyone
> have any quick fixes to eliminate all the dicom info from the header?
> I'd still like to keep the rest of the header intact.
>=20
>                     Thanks,
>                         DDW
> _______________________________________________
> MINC-users@bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>=20


--=20
Andrew Janke      (a.janke@gmail.com || www.cmr.uq.edu.au/~rotor)
Canada->Montreal                                   Cell: +1 (514) 924 2012

------=_Part_2979_277658.1121910147318
Content-Type: application/octet-stream; name="minc_de-dicomerise"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="minc_de-dicomerise"

IyEgL3Vzci9iaW4vZW52IHBlcmwKIwojIEFuZHJldyBKYW5rZSAtIHJvdG9yQGNtci51cS5lZHUu
YXUKIyBDZW50ZXIgZm9yIE1hZ25ldGljIFJlc29uYW5jZQojIFRoZSBVbml2ZXJzaXR5IG9mIFF1
ZWVuc2xhbmQKIyBodHRwOi8vd3d3LmNtci51cS5lZHUuYXUvfnJvdG9yCiMKIyBVU0UgQVQgT1dO
IFJJU0shICBUSElTIE1BWSBNVU5HRSBZT1VSIE1JTkMgRklMRVMgSEVBREVSIQoKdXNlIHdhcm5p
bmdzICJhbGwiOwp1c2UgRmlsZTo6QmFzZW5hbWU7CgokbWUgPSAmYmFzZW5hbWUoJDApOwppZigk
I0FSR1YgIT0gMCl7CiAgIGRpZSAiXG4rKytXQVJOSU5HOiBUSElTIFNDUklQVCBNQVkgTVVOR0Ug
WU9VUiBGSUxFIFBFUk1BTkVOVExZISsrK1xuXG4iLgogICAgICAgIlVzYWdlOiAkbWUgPGZpbGVf
dG9fY2xlYW4ubW5jPlxuXG4iOwogICB9CgooQHl1a2t5X3ZhcnMpID0gc3BsaXQoJyAnLCBgbWlu
Y2luZm8gLXZhcm5hbWVzICRBUkdWWzBdYCk7Cgpmb3JlYWNoICR2YXIgKGdyZXAgey9kaWNvbS99
IEB5dWtreV92YXJzKXsKICAgZm9yZWFjaCAoc3BsaXQoJyAnLCBgbWluY2luZm8gLXZhcmF0dHMg
JHZhciAkQVJHVlswXWApKXsKICAgICAgcHJpbnQgIiB8IFskQVJHVlswXV0gLSByZW1vdmluZyAk
dmFyOiRfXG4iOwogICAgICBzeXN0ZW0oJ21pbmNfbW9kaWZ5X2hlYWRlcicsICctZGVsZXRlJywg
IiR2YXI6JF8iLCAkQVJHVlswXSkgPT0gMCBvciBkaWU7CiAgICAgIH0KICAgfQo=
------=_Part_2979_277658.1121910147318--