Hello there! I hope there is someone out there who is using the DICOM package. When Im trying to read my a DICOM file (MRI-data) I always get this error:> dicom.info("~/myfile")Error in readBin(fid, integer(), length, size = 1) : invalid value of 'n' The DICOM files that come with the DICOM package work just fine. I already tried both endian options. I can view my DICOM files in several viewers, and after converting them to ANALYZE with "medcon", I can read them in R using the AnalyzeFMRI package. The only thing is: medcon gives me "warning: Incorrect sequence length", but the files work fine in every application I tried so far. Except the DICOM package, that is. I'm using R 2.1.1 and DICOM 0.12 Unfortunately, I'm not allowed to supply any of the files causing the error :( TIA, Chris
Christoph Niedermayr wrote:> Hello there! > > I hope there is someone out there who is using the DICOM package. > When Im trying to read my a DICOM file (MRI-data) I always get this > error: > > >>dicom.info("~/myfile") > > Error in readBin(fid, integer(), length, size = 1) : > invalid value of 'n' > > The DICOM files that come with the DICOM package work just fine. > I already tried both endian options. > > I can view my DICOM files in several viewers, and after converting them > to ANALYZE with "medcon", I can read them in R using the AnalyzeFMRI > package. > The only thing is: medcon gives me "warning: Incorrect sequence length", > but the files work fine in every application I tried so far. Except the > DICOM package, that is. > > I'm using R 2.1.1 and DICOM 0.12 > Unfortunately, I'm not allowed to supply any of the files causing the > error :(Please ask the DICOM maintainer for help. Maybe you can generate a small example file that causes the same error and helps the maintainer to see what is going on. Uwe Ligges> TIA, > Chris > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html