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, May 16, 2008 6:46:55 PM(UTC)

Neo.Ko  
Neo.Ko

Groups: Registered
Posts: 17


Hello.

Environment
 - VB .Net 2005
 - LeadTool V15 ( 15.0.1.3)

I have a problem about GrayscaleMode(RasterImage Class)
I Load TIF File(16bit) and run ApplyLinearVOILut Command.

At First, grayscalemode property of the image was "OrderedNormal"
After run ApplyLinearVoiLut Command , grayscalemode property change into "NotOrdered" or "OrderedInverse"

I make this code under MouseMoveEvent
this is code __________________________________
                    Dim VoiCmd As ApplyLinearVoiLookupTableCommand = New ApplyLinearVoiLookupTableCommand()

                    Debug.Print("Image Grayscale Order : " + Image.GrayscaleMode.ToString)
                    If _IsReverse Then   'Check inverted
                        VoiCmd.Flags = VoiLookupTableCommandFlags.ReverseOrder
                    Else
                        VoiCmd.Flags = VoiLookupTableCommandFlags.UpdateMinMax
                    End If

                    VoiCmd.Center = _Level
                    VoiCmd.Width = _Width
                    VoiCmd.Run(Image)


I want to keep grayscalemode of the image.
Please help me.

Neo.Ko attached the following image(s):
Grayscaleorder.JPG
 

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, May 18, 2008 5:05:33 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

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

To keep the GrayscaleMode of the image, you need to use the GrayscaleCommand after calling the ApplyLinearVoiLookupTableCommand:
+-----+
Dim gr As New Leadtools.ImageProcessing.GrayscaleCommand(16)
gr.Run(RasterImageViewer1.Image)
+-----+

 
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.115 seconds.