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, July 6, 2012 11:51:44 PM(UTC)
rulingking

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
 

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, July 8, 2012 7:03:09 AM(UTC)

mohamed  
mohamed

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.

LEAD Logo
 
#3 Posted : Tuesday, July 17, 2012 9:53:15 PM(UTC)
rulingking

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:21:38 AM(UTC)

mohamed  
mohamed

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.

LEAD Logo
 
#5 Posted : Monday, October 8, 2012 9:42:24 PM(UTC)
rulingking

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:28:05 PM(UTC)

mohamed  
mohamed

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.

LEAD Logo
 
#7 Posted : Tuesday, October 9, 2012 2:46:07 AM(UTC)
rulingking

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,
File Attachment(s):
LeadMainWLSample.zip (229kb) downloaded 38 time(s).
 
#8 Posted : Wednesday, October 10, 2012 6:09:17 AM(UTC)

mohamed  
mohamed

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.
File Attachment(s):
ModifiedLeadMainWLSample.zip (229kb) downloaded 45 time(s).
Mohamed Abedallah
Developer 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-2019, Yet Another Forum.NET
This page was generated in 0.251 seconds.