Browsing this Thread:
1 Anonymous Users
How to check image is dicom (.dcm) or not in DVTK api's or in .net |
||
|---|---|---|
|
Quite a regular
![]()
Joined:
1/6 11:51 Group:
Registered Users Posts:
17
Level : 2; EXP : 86
HP : 0 / 46 MP : 5 / 90 ![]() |
To view this post, you must login and reply first.
Posted on: 1/7 11:11
|
|
Transfer
|
||
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 / 3216 ![]() |
Hi User, Use DVTkHighLevelInterface dll as reference and implement following code: public int readDicomFile(string filePath) try { } 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: 1/8 7:41
|
|
Transfer
|
||
Re: How to check image is dicom (.dcm) or not in DVTK api's or in .net |
||
|---|---|---|
|
Just popping in
![]()
Joined:
1/8 15:45 Group:
Registered Users Posts:
2
Level : 1; EXP : 2
HP : 0 / 0 MP : 0 / 1 ![]() |
Hi,
I have the same question (how to detect that a file is dicom file). I developed myself also the suggested solution, but also .gif. exe and even .doc file are read as it was a dicom file .So this solution is not solid enough. Anyone another suggestions Klaasjan
Posted on: 1/8 15:50
|
|
Transfer
|
||
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 / 3216 ![]() |
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: 1/11 7:35
|
|
Transfer
|
||
Re: How to check image is dicom (.dcm) or not in DVTK api's or in .net |
||
|---|---|---|
|
Quite a regular
![]()
Joined:
1/6 11:51 Group:
Registered Users Posts:
17
Level : 2; EXP : 86
HP : 0 / 46 MP : 5 / 90 ![]() |
Hi Piyush,
Thanks for the reply, Your solution is really work for me. Now my this problem is solved. Thanks Manesh
Posted on: 1/15 14:50
|
|
Transfer
|
||
Re: How to check image is dicom (.dcm) or not in DVTK api's or in .net |
||
|---|---|---|
|
Quite a regular
![]()
Joined:
3/23 15:01 Group:
Registered Users Posts:
17
Level : 2; EXP : 86
HP : 0 / 46 MP : 5 / 62 ![]() |
***
i am writing this message to have access to view the first message ***
Posted on: 4/21 9:53
|
|
Transfer
|
||
Re: How to check image is dicom (.dcm) or not in DVTK api's or in .net |
||
|---|---|---|
|
Not too shy to talk
![]()
Joined:
1/29 15:36 Group:
Registered Users Posts:
12
Level : 2; EXP : 25
HP : 0 / 31 MP : 4 / 55 ![]() |
Hi Piyush,
any news/suggestions regarding the issue that "also .gif .exe and even .doc file are read as it was a dicom file"? In my implementation also DVTK dlls are correctly read! Thanks in advance.
Posted on: 7/22 9:57
|
|
Transfer
|
||
Re: How to check image is dicom (.dcm) or not in DVTK api's or in .net |
||
|---|---|---|
|
Webmaster
![]()
Joined:
2005/6/21 15:06 Group:
Webmasters Registered Users Core Developers Content Owners Steering Committee Members Services Request Listeners Posts:
201
Level : 13; EXP : 21
HP : 0 / 305 MP : 67 / 4652 ![]() |
Hi Sara,
besides checking for an exception thrown, also look at the following property: dcFile.FileMetaInformation.DicomPrefix. This should be the four bytes "DICM" in case of a DICOM file. Regards, Marco
Posted on: 7/26 13:49
|
|
Transfer
|
||
Re: How to check image is dicom (.dcm) or not in DVTK api's or in .net |
||
|---|---|---|
|
Not too shy to talk
![]()
Joined:
1/29 15:36 Group:
Registered Users Posts:
12
Level : 2; EXP : 25
HP : 0 / 31 MP : 4 / 55 ![]() |
Hi Marco,
thank you very much for your suggestion. I tried it, but I'm not sure to have correctly understood. In fact: I checked the value of dcFile.FileMetaInformation.DicomPrefix when reading both a DICOM file and a DLL file. In both cases it's a byte array containing the following four byte elements: '68', '73', '67', '77'. Where am I wrong? I thank you in advance for your kind help! Sara.
Posted on: 8/25 11:58
|
|
Transfer
|
||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.





Transfer



