DVTk (Main) Forum Index
   All Posts (pbhageriya)

 Bottom   Previous Topic   Next Topic

(1) 2 3 4 ... 12 »


Re: Multiple nested connections within the same DVT Session
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi,

No, it's not possible in same script and session file for start 2 association simultaneously. If you want to emulate such kind of DICOM scenarios then you can use High Level Interface(HLI) library. The DVTk storage SCP/SCU and QR SCP emulators can also be used to emulate the scenario you've mentioned.

Pl go through samples in developer section to learn about how to use HLI interfaces.

Regards,

Piyush


Posted on: 2010/2/1 7:10
Transfer the post to other applications Transfer
Topic | Forum


Re: Definition file type of Dicom file
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi Manesh,

I think you should aware about on which SOP class dicom object you are working. Also load all Storage SOP classes def files with which you will encounter.

Using DVTk library, you can get SOP class attribute from Dataset and get the SOP class UID. But we've to load definition file before reading DICOM object so please load all the def files relevent to your project.

Regards,

Piyush


Posted on: 2010/1/19 13:12
Transfer the post to other applications Transfer
Topic | Forum


Re: Dicom File metadata modification error
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi Manesh,

Pl use same solution as suggested for DicomFile. Create a new object for FileMetaInformation and store the FMI read from file and modify the created FMI instance and then you can store modified FMI while saving/writing the DicomFile.

Regards,

Piyush


Posted on: 2010/1/18 9:13
Transfer the post to other applications Transfer
Topic | Forum


Re: System.AccessViolationException: Attempted to read or write protected memory....
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi Manesh,

I analyzed the problem and found you can't read and write using same instance of DicomFile object.

This is causing the exception. Pl use the following code for writing the new DICOM file:

DataSet dataset = new HLI.DataSet();

FileMetaInformation fileMetaInfo = new FileMetaInformation();

// Read the Media file

DicomFile dcmFile1 = new DicomFile();

 

dcmFile1.Read(dicomFile, thread);

fileMetaInfo = dcmFile1.FileMetaInformation;

dataset = dcmFile1.DataSet;

DicomFile dcmFile2 = new DicomFile();

// Add previously read FMI to Media file

dcmFile2.FileMetaInformation = fileMetaInfo ;

// Add previously read dataset to Media file

dcmFile2.DataSet =  dataset;

dcmFile2.Write(filePath);

I think this will help. Pl get back to us for any query.

Regards,

Piyush


Posted on: 2010/1/18 9:08
Transfer the post to other applications Transfer
Topic | Forum


Re: DVTk media validation script...
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi User,

You can use DvtCmd application for validating a media directory.  Pl use following option:

DvtCmd -d <Full session file name> <Full media directory path>

The DVT command application is available in DVT installation directory.

Regards,

Piyush


Posted on: 2010/1/15 10:14
Transfer the post to other applications Transfer
Topic | Forum


Re: System.AccessViolationException: Attempted to read or write protected memory....
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi Manesh,

I think there is some problem in your DICOM file. From logging i can say that some attribute is not encoded properly. Can u attach the DICOM file which is causing exception?

If it's a big file then you can upload the file on File Factory site and send us the link.

Contact us if you face any problem in send/upload/attach the file.

Regards,

Piyush


Posted on: 2010/1/15 9:45
Transfer the post to other applications Transfer
Topic | Forum


Re: How to check image is dicom (.dcm) or not in DVTK api's or in .net
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi,

Can you pl send me your code? We are already implementing the suggested solution in our tools. i'll analyze the issue.

Regards,

Piyush


Posted on: 2010/1/11 7:35
Transfer the post to other applications Transfer
Topic | Forum


Re: How to check image is dicom (.dcm) or not in DVTK api's or in .net
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi User,

Use DVTkHighLevelInterface dll as reference and implement following code:

public int readDicomFile(string filePath)

try

{
            
DicomFile dcFile = new DicomFile();
            
dcFile.Read(filePath);

}

catch()

{

............

}

}

Through Catch you can see the exception if it's not a DICOM file. Get back to us for any further query.

Regards,

Piyush


Posted on: 2010/1/8 7:41
Transfer the post to other applications Transfer
Topic | Forum


Re: Dicom Tags
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi,

No, you can't get attribute by Attribute name. Attribute tag is unique for attribute and doesn't change but attribute name may change in future.

Regards,

Piyush


Posted on: 2010/1/8 4:51
Transfer the post to other applications Transfer
Topic | Forum


Re: Dicom Tags
Core Team Member
Joined:
2005/9/15 8:27
From Bangalore, INDIA
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 117
Level : 9; EXP : 84
HP : 0 / 221
MP : 39 / 4968
Offline

Hi,

I think you are looking for following sample code:

public string readDicomFile(string filePath)
{
string protocol="";
DicomFile dcFile = new DicomFile();

dcFile.Read(filePath);

// Get the Attribute

DvtkHighLevelInterface.Dicom.Other.Attribute attr = dcFile.DataSet["0x00080032"];

string attrValue = attr.Values[0];

return protocol;
}

Regards,

Piyush


Posted on: 2010/1/5 12:34
Transfer the post to other applications Transfer
Topic | Forum



 Top
(1) 2 3 4 ... 12 »



[Advanced Search]