Tuesday, September 07, 2010
Google Custom Search

Go to...

Recent Forum Posts

Our Community

Membership Membership:
Latest New User Latest: mendes
New Today New Today: 8
New Yesterday New Yesterday: 20
User Count Overall: 10692

People Online People Online:
Visitors Visitors: 11
Members Members: 0
Total Total: 11

Online Now Online Now:

ClearCanvas Community Forums

Rendering a uint16 grayscale image
Last Post 2010-03-21 09:36 PM by stewart. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
jonas
Basic Member
Basic Member
Posts:16

--
2010-03-16 04:09 PM  

I know you have classes build for rendering images, but I am curious about how you render 16bit grayscale images in C#, as Windows.Form will use GDI+ which only support 8bit grayscale images.

What external library or component do you use to achieve this?

I have look in the code repository and narrowed my search down to the BilinearInterpolation and the *Render and *Buffer classes in the ImageViewer. I can also see CC can utilize VTK in some way - but i need the missing link!

Can anyone give me a short description on how CC render 16bit grayscale images in C#?

Thanks

stewart
Senior Member
Senior Member
Posts:1425

--
2010-03-21 09:36 PM  
Hi, the bilinear interpolator is the missing link you are looking for. It basically takes the original (16 bit) image data, along with lookup tables, and writes directly to the ARGB bitmap that gets rendered to the screen. VTK is used for extracting the MPR slices from a volume.

Hope this helps,
Stewart
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2010 ClearCanvas Inc.