dicom-0.5

所属分类:视频捕捉采集剪辑
开发工具:Visual C++
文件大小:350KB
下载次数:5
上传日期:2009-09-01 08:44:12
上 传 者Axel
说明:  XP下获取摄像头和数码相机图像源码 XP下获取摄像头和数码相机图像源码
(Access to camera and digital camera image source)

文件列表:
dicom-0.5 (0, 2009-05-06)
dicom-0.5\DOCUMENTATION (9970, 2009-05-05)
dicom-0.5\lib (0, 2009-05-06)
dicom-0.5\lib\DObject.rb (50718, 2009-05-06)
dicom-0.5\lib\DRead.rb (25838, 2009-05-06)
dicom-0.5\lib\DWrite.rb (16378, 2009-05-06)
dicom-0.5\lib\dicom.rb (173, 2009-04-12)
dicom-0.5\lib\Anonymizer.rb (16488, 2009-05-06)
dicom-0.5\lib\DLibrary.rb (4234, 2009-05-06)
dicom-0.5\lib\ruby_extensions.rb (688, 2009-04-27)
dicom-0.5\lib\Dictionary.rb (173146, 2009-05-06)
dicom-0.5\COPYING (35147, 2008-07-19)
dicom-0.5\CHANGELOG (4946, 2009-05-05)

RUBY DICOM ====================== SUMMARY -------- This is a fairly basic library for handling DICOM files in Ruby. Digital Imaging and Communications in Medicine (DICOM) is a standard for handling, storing, printing, and transmitting information in medical imaging. It includes a file format definition and a network communications protocol. Ruby DICOM supports reading from, editing and writing to this file format. BASIC USAGE ----------- require 'dicom' # Read file: dcm = DICOM::DObject.new("myFile.dcm") # Display some key information about the file: dcm.print_properties() # Print all tags to screen: dcm.print(true) # Retrieve a data element value: name = dcm.get_value("0010.0010") # Retrieve pixel data: pixels = dcm.get_value("7FE0.0010") # Load pixel data to a RMagick object and display it on screen: image = dcm.get_image_magick() image[0].display # Load pixel data to a NArray object and display it on screen: image = dcm.get_image_narray() NImage.show image[0,true,true] Tip: When playing around with Ruby DICOM in irb, you may be annoyed with all the information that is printed to screen, regardless if you have specified verbose as false. This is because in irb every variable loaded in the program is automatically printed. A hack to avoid this effect is to append ";0" after a command. Example: dcm = DICOM::DObject.new("myFile.dcm") ;0 COPYRIGHT --------- Copyright 2008-2009 Christoffer Lervg This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ABOUT ME -------- Name: Christoffer Lervg Location: Oslo, Norway Email: chris.lervag [@nospam] @gmail.com Please don't hesitate to email me if have any thoughts on this project!

近期下载者

相关文件


收藏者