Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, January 19, 2009 1:29:30 AM(UTC)
ramya palaniraj

Groups: Registered
Posts: 10


Hi,
    In .Net Application, i am able to get the values of  DicomTagType.SamplesPerPixel.At the same time In VC++ Application not able to get the SamplesPerPixel values.Trying the following code,

   CString sSamplesperpixel;
   pElement = pSourceDS->FindFirstElement(NULL, TAG_SAMPLES_PER_PIXEL, FALSE);
    if (!pElement) return 1;
   sSamplesperpixel = pSourceDS->GetStringValue(pElement, 0, 1);
  
   Can you give a solution for me....
  
Regards,
Ramya
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, January 19, 2009 5:55:19 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 766


Is this for the same file? 

Does this happen for all files or only some?  If only some, please upload the file so I can inspect it.

Could you show me the .NET code snippet you're using?

What is the file version of Leadtools.dll  and also the version of ltkrn*.dll that you are using?

NOTE: If you are attaching a project or file to the forums...
1.) Zip the file(s) up.
2.) Make sure it is less than 5 MB.  If it is larger, please send an email to support@leadtools.com and we'll send you FTP instructions.
3.) Remove ANY AND ALL unlock codes and LEADTOOLS DLLs.
4.) Do not click the preview button, the attachment will not show up when you post it.

If you do not wish to post your file(s) on the forum since they are publically viewable, please send an email to support@leadtools.com and make sure that you include a link to this forum post.
 
#3 Posted : Monday, January 19, 2009 6:57:10 PM(UTC)
ramya palaniraj

Groups: Registered
Posts: 10


It happens for all the images when reading the samplesperpixel values in classlibrary\MSVC\DicomSrv Application.i can able to get the all tags values in DicomSrv application except samplesperpixel values.
Can you check application and kindly reply me
  LeadTools File version is 15.0.1.3
  ltkrn file version is 15.0.1.6   

 
#4 Posted : Tuesday, January 20, 2009 5:05:00 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 766


The DicomSrv demo doesn't try to get the value of TAG_SAMPLES_PER_PIXEL anywhere in the code, so I'm assuming that you have modified the code.

Please send me the updated project so I can test it here.
 
#5 Posted : Tuesday, January 20, 2009 7:52:12 PM(UTC)
ramya palaniraj

Groups: Registered
Posts: 10


I have attached the SRVDlg.cpp.Include the SRVDlg.cpp to DicomSrv application. Please test the project and reply me.

Regards,
Ramya
 
#6 Posted : Tuesday, January 20, 2009 7:55:00 PM(UTC)
ramya palaniraj

Groups: Registered
Posts: 10


I have attached the SRVDlg.cpp.Include the
SRVDlg.cpp to DicomSrv application. Please test the project and reply me.

Regards,
Ramya

 
#7 Posted : Wednesday, January 21, 2009 3:26:49 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 766


Our support department has received your email (ticket 2009012110000101 ).  We are working on this issue and will respond back as soon as we have more information.
 
#8 Posted : Wednesday, January 21, 2009 7:17:38 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 766


Sorry that I did not catch this earlier.  The problem is that the samples per pixel tag has a VR type of US.  Therefore you must use GetShortValue rather than GetStringValue.  

The documentation for each Get*Value function will tell you which VR type it supports.  Furthermore, the "Data Element Tag Table" article tells you which VR all of our tags are.
 
#9 Posted : Wednesday, January 21, 2009 10:34:04 PM(UTC)
ramya palaniraj

Groups: Registered
Posts: 10


I got it now.Thank you

Regards,
Ramya
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.204 seconds.