Professional Documents
Culture Documents
All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or
mechanical, including photocopying, recording, taping, or information storage and retrieval systems - without the
written permission of the publisher.
Products that are referred to in this document may be either trademarks and/or registered trademarks of the
respective owners. The publisher and the author make no claim to these trademarks.
While every precaution has been taken in the preparation of this document, the publisher and the author assume no
responsibility for errors or omissions, or for damages resulting from the use of information contained in this
document or from the use of programs and source code that may accompany it. In no event shall the publisher and
the author be liable for any loss of profit or any other commercial damage caused or alleged to have been caused
directly or indirectly by this document.
Publisher
www.dicomvcl.com
Managing Editor
Jiawen Feng
Technical Editors
Cover Designer
Team Coordinator
Production
Contents 5
Table of Contents
Foreword 9
Part I Introduction 12
1 Welcome
................................................................................................................................... 12
5
6 Web Pacs Viewer
Manual Synchronization
.......................................................................................................................................................... 25
Position Synchronization
.......................................................................................................................................................... 25
Show Image Information
..........................................................................................................................................................
Labels 25
Show All Reference
..........................................................................................................................................................
Line 25
Show First and..........................................................................................................................................................
Last Reference Line 25
Show Current..........................................................................................................................................................
Reference Line 25
Save Current ..........................................................................................................................................................
Presentation State 25
Apply Presentation
..........................................................................................................................................................
State 25
Mark as Key Image
.......................................................................................................................................................... 25
Mark series As..........................................................................................................................................................
Key Image 25
Mark Selected..........................................................................................................................................................
as key Image 25
Clear key Image
.......................................................................................................................................................... 25
Save Key Image.......................................................................................................................................................... 25
View Key Image.......................................................................................................................................................... 25
Custom Layout .......................................................................................................................................................... 25
Save layout .......................................................................................................................................................... 26
Save Layout As.......................................................................................................................................................... 26
Set Default Layout
..........................................................................................................................................................
for this modality 26
15 Measure
................................................................................................................................... 26
Stop Measure.......................................................................................................................................................... 26
Length .......................................................................................................................................................... 26
Length and Width
.......................................................................................................................................................... 26
Length and Height
..........................................................................................................................................................
+ Width 26
Plot Length .......................................................................................................................................................... 26
Plogon .......................................................................................................................................................... 26
Angle .......................................................................................................................................................... 26
Cross Line .......................................................................................................................................................... 26
ROI .......................................................................................................................................................... 26
Quantitative Coronary
..........................................................................................................................................................
Analysis 26
Arrow .......................................................................................................................................................... 26
Text Label .......................................................................................................................................................... 27
Calibrate Measurement
.......................................................................................................................................................... 27
Line Profile .......................................................................................................................................................... 27
3D Plot .......................................................................................................................................................... 27
Clear Measure..........................................................................................................................................................
Tools 27
Continue Measure
.......................................................................................................................................................... 27
16 Export
................................................................................................................................... 27
Film Print .......................................................................................................................................................... 27
Save As .......................................................................................................................................................... 29
Copy .......................................................................................................................................................... 29
Burn CD/DVD .......................................................................................................................................................... 30
Export to AVI .......................................................................................................................................................... 31
Save As DICOMDIR
.......................................................................................................................................................... 31
Save As HTML..........................................................................................................................................................
page 31
Save Key Image..........................................................................................................................................................
As DICOMDIR 31
Save Key Images
..........................................................................................................................................................
As HTML Page 31
Save As PDF .......................................................................................................................................................... 31
Save As Flash.......................................................................................................................................................... 31
Save Key Images
..........................................................................................................................................................
As PDF 31
Save Key Images
..........................................................................................................................................................
As Flash 32
17 3D ................................................................................................................................... 32
MPR .......................................................................................................................................................... 32
Curve MPR .......................................................................................................................................................... 32
3D MPR .......................................................................................................................................................... 33
MIP .......................................................................................................................................................... 33
3D MIP .......................................................................................................................................................... 33
Surface Rendering
.......................................................................................................................................................... 34
Volume Rendering
.......................................................................................................................................................... 34
7
8 Web Pacs Viewer
CalledAEtitle .......................................................................................................................................................... 56
ImageScreenIndex
.......................................................................................................................................................... 56
ImageScreenIndex1
.......................................................................................................................................................... 56
TranferSyntax.......................................................................................................................................................... 56
LoadMode .......................................................................................................................................................... 56
Level .......................................................................................................................................................... 56
UserName .......................................................................................................................................................... 56
Password .......................................................................................................................................................... 56
CMovePort .......................................................................................................................................................... 56
ShowQueryDialog
.......................................................................................................................................................... 56
3 Event................................................................................................................................... 56
OnSaveCapture
.......................................................................................................................................................... 56
OnImageFlagChange
.......................................................................................................................................................... 56
OnDicomPrint.......................................................................................................................................................... 57
OnImageFormClose
.......................................................................................................................................................... 57
OnDeleteImage
.......................................................................................................................................................... 57
4 Example
................................................................................................................................... 57
Part VI VB Programing 62
Index 0
Foreword
I
12 Web Pacs Viewer
1 Introduction
1.1 Welcome
DicomVCL a collection of delphi VCL compoments designed to assist the development of DICOM
conformant applications for medical imaging. It is Native Delphi Code, No DLL Needed. A fully functional
trial version is available for immediate download.
DicomVCL is the dicom application development framework for Delphi and C++ Builder.It suport
Delphi 5/6/7/2005/2006/2007 and C++Builder.
WebPACS SDK is make up of a WebPacsViewer ActiveX control and a WebPACS server. It can help
you build your Web PACS easily.
WebPacs SDK, It include Full Dicom Server and WebDicomViewer.ocx You can easy to build pacs.
WebPacs SDK suport delphi, C++Builder, VB, PB, VC, html to build PACS quickly.
1. full pacs function.
2. include dicom print(scu and scp)
3. include worklist
4. include video capture to dicom
5. include scan image to dicom
6. include import other image format to dicom
7. include burn cd/dvd directly
8. can be only load key images
II
14 Web Pacs Viewer
2 Image Operation
2.1 Overview
2.2 Query
2.2.1 Setup Layout
2.you can split the view and setup the view by right mouse popup menu
2.2.5 Language
Select Language for the viewer
2.4 Zoom/Pan
set left mouse button is zoom
set right mouse button is pan(move the image in the view)
the middle mouse button always is windows/level
2.6 Flip
Flip the image
2.7 Reverse
reverse the image
2.8 Rotate
rotate the image
2.9 Invert
invert the image
2.12 Reset
reset all change of the images
2.14 Tools
2.14.1 Lookup Table
select a lookup tabel for a/all image
2.14.4 Merge
Merge two image, you can change the transperent
2.14.6 Hisgram
2.14.7 Perfusion
2.14.8 Filter
seletc a filter for image ( for example the capture image need a filter)
2.15 Measure
2.15.1 Stop Measure
2.15.2 Length
2.15.6 Plogon
2.15.7 Angle
2.15.9 ROI
2.15.11 Arrow
2.15.15 3D Plot
2.16 Export
2.16.1 Film Print
add image to this form and then send to dcom printer to print film
2.16.2 Save As
Save to image to other image format
2.16.3 Copy
Copy image to clipboard
2.17 3D
2.17.1 MPR
2.17.3 3D MPR
2.17.4 MIP
2.17.5 3D MIP
in progaming
III
36 Web Pacs Viewer
3 Query/Report Operation
3.1 Login
this is RIS Query interface. You can Query report, study, DICOMDIR(CD,DVD) or Query/Receive a remote dicom
device.
IV
46 Web Pacs Viewer
4 System Administrator
V
50 Web Pacs Viewer
5 Delphi Programing
public
procedure LoadImages(const AName: WideString; const AUID: WideString; AMode: Integer);
procedure Connect;
procedure ClearLoadedImages;
procedure DisplayImagePanel;
procedure SaveImageFlag;
function GetCnsBitmap(AImageIndex: Integer): OleVariant;
procedure SaveImages;
function GetSelectedCount: Integer;
procedure ScanImageEx(AScanerIndex: Integer; AShowUI: WordBool; const AProfileName:
WideString;
const APatientName: WideString; const APatientID: WideString;
const APatientSex: WideString; const APatientAge: WideString;
const APatientStudyID: WideString; const AStudyUID: WideString;
APatientDOB: Double);
procedure ImportExpertEx(const AProfileName: WideString; const APatientName: WideString;
const APatientID: WideString; const APatientSex: WideString;
const APatientAge: WideString; const APatientStudyID: WideString;
const AStudyUID: WideString; APatientDOB: Double);
procedure ShowCaptureDialogEx(const AProfileName: WideString; const APatientName:
WideString;
const APatientID: WideString; const APatientSex: WideString;
const APatientAge: WideString; const APatientStudyID: WideString;
const AStudyUID: WideString; APatientDOB: Double);
procedure SelectBackgroundCaptureImageEx(const AProfileName: WideString;
const APatientName: WideString;
const APatientID: WideString;
const APatientSex: WideString;
const APatientAge: WideString;
const APatientStudyID: WideString;
const AStudyUID: WideString; APatientDOB: Double);
function GetSelectedImageLabels(AImageIndex: Integer; AIndex: Integer): WideString;
procedure LoadImagesEx(var AProfileName: WideString; var AName: WideString;
var AUID: WideString; AMode: Integer);
function IsStudyLoaded(const AStudyUID: WideString): Integer;
function WaitForStudyLoad(const AStudyUID: WideString): Integer;
procedure LoadFromFile(const AFileName: WideString);
procedure LoadFromDICOMDIR(const APath: WideString);
procedure LoadFromFolder(const APath: WideString);
procedure ImportFromFile(const AFileName: WideString; AImageFormat: Integer);
procedure SaveToDICOMDIR(const APath: WideString);
procedure SaveSelectedToFile(const AFileName: WideString; AImageFormat: Integer);
published
5.1 Public
5.1.1 LoadImages
procedure LoadImages(const AName: WideString; const AUID: WideString; AMode: Integer);
const AName: WideString; ----- patient name, will display on image list tab and network queue
form
const AUID: WideString; ----- '1.3.12.2.1107.5.1.1.21044.20040819115710127.2', //studyuid
AMode: Integer //0 bit = 0
// 1 load the study and lock( not auto clear)
//1 bit = 0 load all images of the study
// 1 load only key images
example:
WebDicomView1.LoadImages(
'Patient Name', //patient name, will display on image list tab and network queue form
'1.3.12.2.1107.5.1.1.21044.20040819115710127.2', //studyuid
0 //0 bit = 0
// 1 load the study and lock( not auto clear)
//1 bit = 0 load all images of the study
// 1 load only key images
);
5.1.2 LoadImagesEx
procedure LoadImagesEx(var AProfileName: WideString; var AName: WideString;
var AUID: WideString; AMode: Integer);
5.1.3 Connect
procedure Connect;
5.1.4 ClearLoadedImages
procedure ClearLoadedImages;
5.1.5 DisplayImagePanel
procedure DisplayImagePanel;
5.1.6 GetSelectedCount
function GetSelectedCount: Integer;
5.1.7 GetCnsBitmap
function GetCnsBitmap(AImageIndex: Integer): OleVariant;
procedure SaveImages;
5.1.8 GetSelectedImageLabels
function GetSelectedImageLabels(AImageIndex: Integer; AIndex: Integer): WideString;
5.1.9 ImportExpertEx
procedure ImportExpertEx(const AProfileName: WideString; const APatientName: WideString;
const APatientID: WideString; const APatientSex: WideString;
const APatientAge: WideString; const APatientStudyID: WideString;
const AStudyUID: WideString; APatientDOB: Double);
It show the import form. you can select other image format and import into dicom image
example:
WebDicomView1.ImportExpertEx(
'US group', // profile name
'Feng', //patient name
'3005', //patient id
'M', //sex
'006Y', //age
'0002', //study id
'12321321312355555551', //study UID
now //study Date
);
5.1.10 ScanImageEx
procedure ScanImageEx(AScanerIndex: Integer; AShowUI: WordBool; const AProfileName: WideString;
const APatientName: WideString; const APatientID: WideString;
const APatientSex: WideString; const APatientAge: WideString;
const APatientStudyID: WideString; const AStudyUID: WideString;
APatientDOB: Double);
example:
WebDicomView1.ScanImageEx(-1, true,
'US group', // profile name
'Feng', //patient name
'3005', //patient id
'M', //sex
'006Y', //age
'0002', //study id
'12321321312355555551', //study UID
now //study Date
);
5.1.11 ShowCaptureDialogEx
procedure ShowCaptureDialogEx(const AProfileName: WideString; const APatientName: WideString;
const APatientID: WideString; const APatientSex: WideString;
const APatientAge: WideString; const APatientStudyID: WideString;
const AStudyUID: WideString; APatientDOB: Double);
example:
WebDicomView1.ShowCaptureDialogEx(
'US group', // profile name
'Feng', //patient name
'3005', //patient id
'M', //sex
'006Y', //age
'0002', //study id
'12321321312355555551', //study UID
now //study Date
);
5.1.12 IsStudyLoaded
function IsStudyLoaded(const AStudyUID: WideString): Integer;
5.1.13 WaitForStudyLoad
function WaitForStudyLoad(const AStudyUID: WideString): Integer;
5.1.14 LoadFromFile
procedure LoadFromFile(const AFileName: WideString);
5.1.15 LoadFromDICOMDIR
procedure LoadFromDICOMDIR(const APath: WideString);
5.1.16 LoadFromFolder
procedure LoadFromFolder(const APath: WideString);
5.1.17 ImportFromFile
procedure ImportFromFile(const AFileName: WideString; AImageFormat: Integer);
5.1.18 SaveToDICOMDIR
procedure SaveToDICOMDIR(const APath: WideString);
5.1.19 SaveSelectedToFile
procedure SaveSelectedToFile(const AFileName: WideString; AImageFormat: Integer);
5.2 Published
5.2.1 Host
property Host: WideString;
5.2.2 Port
property Port: Integer;
5.2.3 CallingAEtitle
property CallingAEtitle: WideString;
5.2.4 CalledAEtitle
property CalledAEtitle: WideString;
5.2.5 ImageScreenIndex
property ImageScreenIndex;
5.2.6 ImageScreenIndex1
property ImageScreenIndex1;
5.2.7 TranferSyntax
property TranferSyntax: WideString;
5.2.8 LoadMode
property LoadMode: Integer;
5.2.9 Level
property Level: WideString;
5.2.10 UserName
property UserName: WideString;
5.2.11 Password
property Password: WideString;
5.2.12 CMovePort
property CMovePort: Integer;
5.2.13 ShowQueryDialog
property ShowQueryDialog: WordBool;
5.3 Event
5.3.1 OnSaveCapture
property OnSaveCapture: TNotifyEvent;
5.3.2 OnImageFlagChange
property OnImageFlagChange: TNotifyEvent;
5.3.3 OnDicomPrint
property OnDicomPrint: TWebDicomViewOnDicomPrint;
5.3.4 OnImageFormClose
property OnImageFormClose: TNotifyEvent;
5.3.5 OnDeleteImage
property OnDeleteImage: TWebDicomViewOnDeleteImage;
5.4 Example
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, OleCtrls, WebDicomViewer_TLB, kxstring, KxDicomClient, AxCtrls;
type
TForm1 = class(TForm)
MainMenu1: TMainMenu;
File1: TMenuItem;
Load1: TMenuItem;
Capture1: TMenuItem;
Import1: TMenuItem;
Scan1: TMenuItem;
Print1: TMenuItem;
N1: TMenuItem;
WebDicomView1: TWebDicomView;
procedure Load1Click(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure Capture1Click(Sender: TObject);
procedure Import1Click(Sender: TObject);
procedure Scan1Click(Sender: TObject);
procedure WebDicomView1SaveCapture(Sender: TObject);
procedure WebDicomView1ImageFormClose(Sender: TObject);
procedure WebDicomView1DeleteImage(ASender: TObject;
var CanDelete: Integer);
procedure WebDicomView1DicomPrint(ASender: TObject;
var CanPrint: Integer);
procedure WebDicomView1ImageFlagChange(Sender: TObject);
procedure Print1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
uses printers;
{$R *.dfm}
WebDicomView1.ScanImageEx(-1, true,
'US group', // profile name
'Feng', //patient name
'3005', //patient id
'M', //sex
'006Y', //age
'0002', //study id
'12321321312355555551', //study UID
now //study Date
);
end;
begin
Printer.BeginDoc;
for i := 0 to WebDicomView1.GetSelectedCount - 1 do
begin
v1.Picture := IPicture( WebDicomView1.GetCnsBitmap(i));
end;
Printer.EndDoc;
end;
end.
VI
62 Web Pacs Viewer
6 VB Programing
VII
64 Web Pacs Viewer
7 VC Programing
VIII
66 Web Pacs Viewer
8 Access Sample