Image Conformance and GSPS

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
zhengguang
Posts: 5
Joined: Wed, 2009-09-16, 09:04
Location: Inner Mongolia,China
Contact:

Image Conformance and GSPS

#1 Post by zhengguang »

I am studying the consistency of the image display, and making use of GSPS in the DCMTK .So I use the class DVPresentationState ,I have Successfully applied some states (such as Rotation and Flip)to the attached image(pstate.setFlip(),pstate.setRotayion()).but when I apply a circle shutter(using pstate.setCircularShutter(x,y,r))to the attacher image I fail .These days I am depressed and cann't find the reason.Could you tell me why the methods setRotation()and etFlip() Work, but the method setCircularShutter() doesn't work?
Please help me .Thanks !![/b][/u]

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

The reason for this is quite simple: Some portions of the GSPS object are not applied by the DCMTK (i.e. C++ layer) but by the Java layer of DICOMscope. Drawing a circle is easy in Java but relatively complex in C++ (without having a class library like Qt).

zhengguang
Posts: 5
Joined: Wed, 2009-09-16, 09:04
Location: Inner Mongolia,China
Contact:

Thanks

#3 Post by zhengguang »

I do not know JAVA. I can only use C++,But DCMTK provide a method pstate.setCircularShutter(x,y,r) in C++. What is the usefulness of the method? What shall I do next if I want to use C++ to Achieve a circle shutter ?
Thanks a lot!

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier »

The data handling is completely done in C++ (DCMTK) but the rendering of some aspects of the GSPS object is performed on the Java level. This was a deliberate design decision when we started to develop DICOMscope more than 10 years ago ...

zhengguang
Posts: 5
Joined: Wed, 2009-09-16, 09:04
Location: Inner Mongolia,China
Contact:

Thanks

#5 Post by zhengguang »

These days I Try to make a little image-browser which can open Dicom images and achieve some simple Consistency Display by C++.There isn'n any shutter on my image.How can I achieve my aim of setting a circle shutter with the method pstate.setCircularShutter ?There are some codes as follows which I use .

Sint32 x=pstate.getCenterOfCircularShutter_x();
Sint32 y=pstate.getCenterOfCircularShutter_y();
Sint32 r=pstate.getRadiusOfCircularShutter();
Uint16 p=pstate.getShutterPresentationValue();
pstate.setCircularShutter(x,y,r);
pstate.setShutterPresentationValue(p);


What should I do next? Do I have to draw a circle Manually?
I can do it

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#6 Post by Jörg Riesmeier »

Do I have to draw a circle Manually?
Yes, as I already wrote: some aspects of the GSPS object are not rendered (i.e. visualized) by the C++ implementation. Please re-read my previous postings!

zhengguang
Posts: 5
Joined: Wed, 2009-09-16, 09:04
Location: Inner Mongolia,China
Contact:

Glad

#7 Post by zhengguang »

I have completed it with your help.
Thanks a lot! :D
I can do it

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest