Thursday, February 09, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: she
New Today New Today: 15
New Yesterday New Yesterday: 26
User Count Overall: 20578

People Online People Online:
Visitors Visitors: 13
Members Members: 2
Total Total: 15

Online Now Online Now:
01: werve
02: rlake

ClearCanvas Community Forums

Add Image Annotations
Last Post 2010-03-30 02:38 PM by stewart. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
vaibhav2383
Advanced Member
Advanced Member
Posts:40

--
2010-03-23 04:20 AM  

Hi,

I am trying to add the Image annotation items to the ImageViewer (E.g. R and L indicators on CR image)
I am using the ColorImageGraphic object and embed it to the Overlay Graphics.

Here is how i have done it:

 

ColorImageGraphic image = new ColorImageGraphic(bmp.Width, bmp.Height, bitmapData);
MoveControlGraphic imageMove = new MoveControlGraphic(image);

 

The problem is:

1. The size of the image is set relative to the actual image loaded in the image box and zooms in and out with the loaded image.
2. The ImageGraphic.Move() method is not implemented and hence the Annotation image doesn't move.

I am using CC SDK 1.5.
Any help on the issues is appreciated.

Regards,
Vaibhav

stewart
Senior Member
Senior Member
Posts:2032

--
2010-03-30 02:38 PM  
This is a limitation of the Graphics framework right now in that everything is essentially tied to the image and you can't specify the coordinate system of a graphic to be "Viewport", for example.

Anyway, there's 2 ways to tackle this:
1. Put your graphic immediately after the DICOM ImageGraphic (at the top of the scene graph). If your graphic's not in the "OverlayGraphics", then it's not subject to the DICOM Image's transforms (zoom, pan, etc).
2. Override your graphic's OnDraw method and recalculate the zoom and pan based on the image's zoom/pan so it effectively stays in the same place.

After having typed it out ... just do option 1 :)

Hope this helps,
Stewart
Real-time support available to Clinical Edition and Team Edition customers
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.