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: tchlee
New Today New Today: 16
New Yesterday New Yesterday: 26
User Count Overall: 20579

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

Online Now Online Now:
01: Leighann
02: tchlee

ClearCanvas Community Forums

ImportFromBitmap Plugin
Last Post 2010-04-20 10:10 PM by stewart. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Kmilo
New Member
New Member
Posts:5

--
2010-04-10 03:56 PM  

HI everyone

I'm trying to continue the ImportFromBitmap Plugin development , this plugin has a limitation because only load 24 Bit RGB Images, and in Dicom there are many machines that only load 8 bit grayscale images.

For this purpose I 'm working with 8bpp PixelFormat but something si wrong at the moment I display the image and I'm Doing this at the moment to convert.

    BitmapData data = image.LockBits(new Rectangle(0, 0, columns, rows), ImageLockMode.ReadOnly, image.PixelFormat);

stride = data.Stride;

for (int i = 0; i < rows; i ++)
                        Marshal.Copy(new IntPtr(bmpData.ToInt64() + (i * stride)), pixelData, i * stride, stride);

return pixelData;

 

this is the data that goes to :

dicomFile.DataSet[DicomTags.PixelData].Values

I would like to know if someone knows about how can be solved this issue

thanks to all..

 

Kmilo

Kmilo
New Member
New Member
Posts:5

--
2010-04-11 05:05 PM  
After I little reading of the DICOM Standard finally I got The dataset characteristics and the how to read the image to its proper display in 8 bit Grayscale....
stewart
Senior Member
Senior Member
Posts:2032

--
2010-04-20 10:10 PM  
Hi, glad you got it sorted out. As I'm sure you've discovered, there's really no such thing as a grayscale bitmap. I've been meaning to update the Import From Bitmap plugin in the repository for 2.0SP1, but haven't had a chance to do it. If you are willing to share your source, I can incorporate your changes when I update it.

Best regards,
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.