This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, April 21, 2008 5:57:05 AM(UTC)
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
#2
Posted
:
Monday, April 21, 2008 8:28:04 AM(UTC)
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)
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)
Groups: Registered
Posts: 9
0.jpg
bertholet.v attached the following image(s):
#5
Posted
:
Tuesday, April 22, 2008 5:42:48 AM(UTC)
Groups: Registered
Posts: 9
+250.jpg
bertholet.v attached the following image(s):
#6
Posted
:
Tuesday, April 22, 2008 5:43:40 AM(UTC)
Groups: Registered
Posts: 9
-250
bertholet.v attached the following image(s):
#7
Posted
:
Tuesday, April 22, 2008 10:46:03 AM(UTC)
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)
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)
#9
Posted
:
Wednesday, April 23, 2008 11:05:51 AM(UTC)
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.