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 : Friday, October 16, 2009 6:36:36 PM(UTC)
yourfriend20030

Groups: Registered
Posts: 59


Hi Leadtools staff!
I am facing a problem relating to How to print Patient Information with Dicom Image
My problem is that:
I want to print some information of Patient such as: Patient Name, Patient Age... At the upper left of the Dicom Image. I am using Realization to realize text in to Dicom Image. Then I have a new Dicom Image with Text.
Can you tell me the other way to do that
Thanks in advance and hope to see you response as soon as possible
 

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 : Sunday, October 18, 2009 3:25:09 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

1. Please tell me which LEADTOOLS version (15, 16, etc.) you are using.
2. Which LEADTOOLS programming interface (Main OCX, .NET classes, DLL API, C++ Classes, etc.) you are using?
3. What do you mean by "realization"? What LEADTOOLS function are you using to draw the text on the image?
4. Is this approach causing a problem? If yes, what is the problem exactly?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Sunday, January 31, 2010 3:51:00 PM(UTC)
yourfriend20030

Groups: Registered
Posts: 59


1. I am using Leadtools ver 16.0.0.2(trial version)
2. DLL API
3. I am using AnnAutomation to realize Dicom Image
4. here is my code to do it
void RealizeAnnotation()
{
if (!CheckValidCell()) return;
try
{
string strTempAnnotationFile = GetAnnPath(_medicalViewer.Cells[CellIndex].GetTag(1, MedicalViewerTagAlignment.TopCenter).Text);
if(!System.IO.File.Exists(strTempAnnotationFile))
{
//Save to General Ann File
_medicalViewer.Cells[CellIndex].SaveAnnotations(strTempAnnotationFile, -1, 1, MedicalViewerFileOperation.Create);
}
else
{
_medicalViewer.Cells[CellIndex].SaveAnnotations(strTempAnnotationFile, -1, 1, MedicalViewerFileOperation.Replace);
}
// Create a temporary viewer and AnnAutomation
RasterImageViewer riv = new RasterImageViewer();
if (CellIndex 0)
{
annAuto.Realize();
}
}
}
catch
{
annCodecs.Load(strTempAnnotationFile, annAuto.Container, 1);
annAuto.Realize();
}
Application.DoEvents();
_medicalViewer.Cells[CellIndex].Image = riv.Image.CloneAll();
annAuto.Dispose();
riv.Dispose();
MessageBox.Show("Realizing Annotation Objects to Image successfully. Please press OK to finish!");
mnuSave1_Click(mnuSave, new EventArgs());
}
catch (Exception ex)
{
MessageBox.Show(ex.Message+@"\n Please realize it again or Contact our support staff(VBITJSC)");
}
}


Please read it and reply me as soon as possible\
thanks in advance
 
#4 Posted : Monday, February 1, 2010 5:38:55 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Is the problem with this approach having to convert the image to 24-bit color? This can have bad effects if the original image is 12 or 16-bit grayscale, because you will be losing the extended gray information and will only have the equivalent of 8-bit grayscale after this processing.

A better approach is to write the text or realize annotations on a separate 8-bit image filled with a suitable background color (such as pure black or white), then convert it to the original image's pixel depth (12 or 16 bits) then combine them into one image using the CombineCommand class.

If your problem is something else, please explain it in details.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
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-2024, Yet Another Forum.NET
This page was generated in 0.061 seconds.