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 : Tuesday, November 24, 2009 4:54:41 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


A common need in medical imaging is to burn text onto the image.  Commonly this is just a simple, white "L", "R", "A", etc. to denote anatomical direction.  We have annotations that make it easy to create and burn text onto images, however, we use GDI+ under the hood so it will not work on 12/16 bpp grayscale images and must be converted up to 24bpp.  When you do this, the color information is lost and you can no longer window level properly.

The workaround for this is to make a copy of the image, fill it with all black, burn the white text annotation onto it, then combine just the white text onto the original image.  I've attached a simple C# 2005 project using LEADTOOLS 16.5's .NET interface that shows how to do this.
File Attachment(s):
 

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 : Wednesday, May 23, 2012 12:42:15 PM(UTC)

JamesD  
Guest

Groups: Guests
Posts: 3,022

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

The attached project has been updated for version 17. The project has also been modified to add editable AnnTextObjects to the Medical Viewer's Annotation Container before realizing.
File Attachment(s):
 
#3 Posted : Wednesday, June 5, 2013 11:17:44 AM(UTC)

RobertB  
Guest

Groups: Guests
Posts: 3,022

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

The attached project has been updated for version 18 of LEADTOOLS, it has also been modified to save the image to disk with the realized annotations.
File Attachment(s):
 
#4 Posted : Saturday, May 13, 2017 3:17:00 PM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 366

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

The attached project has been updated to a Visual Studio 2017 project targeting LEADTOOLS 19. It has also been modified to realized annotations without the use of a secondary viewer.

File Attachment(s):
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
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.113 seconds.