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 : Monday, April 21, 2008 5:57:05 AM(UTC)
bertholet.v

Groups: Registered
Posts: 9


I try to use the PaintContrast property of RasterImageViewer image and I am not satisfied by its behaviour. I knwo there is a contrast method applicable directly on the image.

Could you tell me how I can apply it on the image of my imageviewer.

Thanks for helping...

Best regards

Vincent Bertholet
 

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 : Monday, April 21, 2008 8:28:04 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


You will want to use the ContrastBrightnessIntensityCommand class.  Take a look at the article for this class in the .NET help file and you should find an examle in both vb.net and C#.  You will want to pass the RasterImageViewer.Image property into the ContrastBrightnessIntensityCommand.Run() method.
 
#3 Posted : Tuesday, April 22, 2008 5:38:29 AM(UTC)
bertholet.v

Groups: Registered
Posts: 9



Thx for the info but:

I tried the ContrastBrightnessIntensityCommand but it has no effect (I have to mention that we have the Image Raster not Pro version)

So I tried the ChangeContrastCommand. Here are different results we obtained but they are not in the line of contrast changes in our mind... Do you have any clue about that ?

0.jpg is the initial image
+250.jpg is the contrasted image with a parameter of 250
-250.jpg is the contrasted image with a negative parameter of 250
 
#4 Posted : Tuesday, April 22, 2008 5:42:07 AM(UTC)
bertholet.v

Groups: Registered
Posts: 9


0.jpg
bertholet.v attached the following image(s):
0.jpg
 
#5 Posted : Tuesday, April 22, 2008 5:42:48 AM(UTC)
bertholet.v

Groups: Registered
Posts: 9


+250.jpg
bertholet.v attached the following image(s):
+250.jpg
 
#6 Posted : Tuesday, April 22, 2008 5:43:40 AM(UTC)
bertholet.v

Groups: Registered
Posts: 9


-250
bertholet.v attached the following image(s):
-250.jpg
 
#7 Posted : Tuesday, April 22, 2008 10:46:03 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


If this isn't what you're expecting, then you probably need a different function or combination of functions.  Please send a before and after image of what you are trying to accomplish and I'll try to point you in the right direction. 

FYI, you can post more than one image to the forum if you zip them up and attach the zip file.
 
#8 Posted : Wednesday, April 23, 2008 4:47:43 AM(UTC)
bertholet.v

Groups: Registered
Posts: 9


Thank you for your help,

in the attached file is the example we would like. The idea is to have the same behaviour has some classical image analysis software (such as photoshop for example)


File Attachment(s):
Contrast.zip (244kb) downloaded 21 time(s).
 
#9 Posted : Wednesday, April 23, 2008 11:05:51 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


I'm sorry, but it's apparent we use a different algorithm for our plain contrast function.  If you use our AdaptiveContrastCommand, you should get slightly more similar results.  That's the probably the closest function we have to Adobe's contrast.
 
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.213 seconds.