Hi,
Sorry if this is a repeat post, I can't seem to find the last one I tried to post.
I want to use the dicim gem to help load dicim header data into a database. Basically, for a given dicom file, I want to generate a N-by-3 array, where the columns are the Tag ID, Tag Name, and Tag Value. I imagine that this is very simple to do, but I'm relatively new to Ruby and I'm a bit lost with this gem. It would be much appreciate if someone could provide a concrete example that does something like:
def get_dicom_headers_array
header_array = []
ObjectSpace.each_object(DICOM::DictionaryElement) do |e|
header_array.push( [ e.tag_id, e.tag_name, e.tag_value ] )
end
header_array
end
Thanks.