LEADTOOLS Support
General
General Questions
LEAD MAIN 14.0 + VB6.0 - RasterProcess ApplyLinearVOILUT equivalent in Lead Main control.
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, July 6, 2012 11:46:44 PM(UTC)
Groups: Registered
Posts: 26
Hi,
I am replacing the LeadRasterView control with Lead Main control in my application (VB 6.0 + LT 14.0)
1) I want to know the equivalent method for ApplyLinearVOILUT in Lead Main Control.
2) Also the text I draw using Lead Main method DrawText on control doesn't get displayed. What I need to do more to draw text on control.
Thanks in advance
#2
Posted
:
Sunday, July 8, 2012 6:58:09 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
1. The main OCX does not contain all methods and properties of the RasterCOM objects and controls. There is no equivalent for the ApplyLinearVOILUT method.
2. Do you want to draw on the control's surface or on the bitmap data itself (modify the image pixels)?
If you want to draw on the surface, you must do that in the control's Paint event so that the drawing does not get erased.
If you want to modify the pixels of the bitmap, you should set the DrawPersistence property to True before drawing.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Tuesday, July 17, 2012 9:48:15 PM(UTC)
Groups: Registered
Posts: 26
Hi,
It might be the problem then using the main OCX. Still trying to see whether all of the functionality could be achieved in my application.
Though there is no equivalent for the ApplyLinearVOILUT method could you let me know how could I process the Window Level then or by which way ?
Thanks again
#4
Posted
:
Sunday, July 22, 2012 12:16:38 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
Hi,
Window Level is a view/display filter that updates the lut used for 10-16bit grayscale image display. You should calculate the Min value and Max value using Window Center and Window Width, then use the Photometric Interpretation tag value to see weather to use start color as white or black.
MONOCHROME1 means that the start value should be White (RGB (255,255,255)) and MONOCHROME2 means the start color is black (RGB (0, 0, 0)).
The best method for window leveling is WindowLevelFillLUT.
Notes:
MinVal=Window Center - (WindowWidth/2)
MaxVal=Window Center + (Windowwidth/2)
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
#5
Posted
:
Monday, October 8, 2012 9:37:24 PM(UTC)
Groups: Registered
Posts: 26
Hi,
I tried using WindowLevelFillLUT seems got luck using it by clicking a button.
But still i am not able to implement it on sliders. Any help or code sample really appreciated. I am still trying on it, if I can go a few steps further will provide a sample.
Hope some code sample or a way to implement on sliders will be there.
Thanks,
#6
Posted
:
Monday, October 8, 2012 11:23:05 PM(UTC)
Groups: Registered, Tech Support
Posts: 179
Are you saving the original bitmap in a secondary control, then restoring it before you do the change every time?
If you're doing this and it still doesn't work, Send an email to
support@leadtools.com and include the following:
1. Small working project (not your full application) that shows the problem and sample images that triggered the issue.
2. Your LEADTOOLS serial number (do NOT post it here).
3. Link to this forum post.
Note when you send any attachment put them in a ZIP or RAR file.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
#7
Posted
:
Tuesday, October 9, 2012 2:41:07 AM(UTC)
Groups: Registered
Posts: 26
Hi,
Sending a sample application for the Lead Main Window Levelling.
The slider values doesn't show effect on the image loaded or it displays error message as added within code.
Components and References used within sample are:
Components
-------------
Lead Main Control (14.0) [ltocx14n.ocx v14.5.0.1]
Microsoft Windows Common Controls 6.0 (SP6) [mscomctl.ocx]
References
-------------
Lead Raster Object Library (14.0) [LTR14N.dll v14.5.0.77]
Lead DICOM Kernel COM Object Library (14.0) [LTDicKrn14n.dll v14.5.0.79]
Lead DICOM DS COM Object Library (14.0) [LTDicDS14n.dll v14.5.0.77]
Lead Raster Process Object Library (14.0) [LTRPR14n.dll v14.5.0.77]
Waiting for some way out of the problem.
Thanks again,
#8
Posted
:
Wednesday, October 10, 2012 6:04:17 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
I have tested your project and noticed that the image is signed. And your code doesn't handle it correctly. So I have modified the code to handle 16-bit signed images. Please download the attached project and search for "Mohamed:" to find the modified Lines.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
General
General Questions
LEAD MAIN 14.0 + VB6.0 - RasterProcess ApplyLinearVOILUT equivalent in Lead Main control.
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.