LEADTOOLS Support
Document
Document SDK Examples
Burn Text Onto 16bpp Grayscale Images and Retain Color Information (Updated)
While some posts in this topic are more current, this topic was posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, November 24, 2009 4:54:41 AM(UTC)
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.
#2
Posted
:
Wednesday, May 23, 2012 12:42:15 PM(UTC)
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.
#3
Posted
:
Wednesday, June 5, 2013 11:17:44 AM(UTC)
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.
#4
Posted
:
Saturday, May 13, 2017 3:17:00 PM(UTC)
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.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Examples
Burn Text Onto 16bpp Grayscale Images and Retain Color Information (Updated)
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.