LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Remove Red Eye from an Image to User Selection Area
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, August 17, 2006 12:03:32 AM(UTC)
Groups: Registered
Posts: 4
Sir,
PLZ, provide me the code to remove the redeye efect from a area selected by the user from of image.
its Urgent ,
samrtdata
#2
Posted
:
Friday, August 18, 2006 11:03:31 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
This example code comes from your .NET helpfile:
VB.NET
'Run the Remove Red Eye command on an image.
Private Sub RemoveRedEyeTest(ByVal image As Leadtools.IRasterImage)
Dim command As Leadtools.ImageProcessing.Color.RemoveRedEyeCommand = New Leadtools.ImageProcessing.Color.RemoveRedEyeCommand
'Apply the redeye removal command.
command.NewColor = New Leadtools.RasterColor(5, 20, 10)
command.Threshold = 125
command.Lightness = 100
command.Run(image)
End Sub
C#
//Run the Remove Red Eye command on an image.
private void RemoveRedEyeTest(Leadtools.IRasterImage image)
{
Leadtools.ImageProcessing.Color.RemoveRedEyeCommand command = new Leadtools.ImageProcessing.Color.RemoveRedEyeCommand();
//Apply the redeye removal command.
command.NewColor = new Leadtools.RasterColor(5, 20, 10);
command.Threshold = 125;
command.Lightness = 100;
command.Run(image);
}
If a region exists on the image passed to the Run command, then the command should be executed only on the region. You will probably need to play with the NewColor, Threshold, and Lightness parameters in order to get desired results.
#3
Posted
:
Sunday, August 20, 2006 9:34:28 PM(UTC)
Groups: Registered
Posts: 4
Sir,
The Given code is not implemented the user selection area to remove the red eye, if possible plz send the code with user selection
thanx
san
#4
Posted
:
Wednesday, August 23, 2006 8:28:37 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
San,
Set your RasterImageViewer's InteractiveMode property to RasterViewerInteractiveMode.Region. This will let the user make a selection by clicking and dragging. You can use either an ellipse, rectangle, or freehand region mode by changing the RasterImageViewer.InteractiveRegionType to whatever mode you desire. The RemoveRedEyeCommand will only whatever selection is currently on the image.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Remove Red Eye from an Image to User Selection Area
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.