lib/metamri/raw_image_file.rb in metamri-0.2.20 vs lib/metamri/raw_image_file.rb in metamri-0.2.21
- old
+ new
@@ -298,10 +298,12 @@
### return [ header, RDGEHDR ]
### end
else
# Try reading with RubyDICOM
@current_hdr_reader = RUBYDICOM_HDR
- header = DICOM::DObject.new(absfilepath)
+ ####header = DICOM::DObject.new(absfilepath) # changing from dicom 0.8.0 to 0.9.5
+ header = DICOM::DObject.read(absfilepath)
+
if defined? header.read_success && header.read_success
@current_hdr_reader = nil
return [header, RUBYDICOM_HDR]
end
\ No newline at end of file