Contrast Activity
The Contrast activity enables users to adjust the visual contrast of an image. This activity processes a specified input image, modifying its contrast level, and then saves the result as a new output image.
| Field | Description | Requirement |
|---|---|---|
| Input image | Specifies the full path, filename, and extension of the source image to be processed. | Required |
| Output image | Defines the full path, filename, and extension where the contrast-adjusted image will be saved. | Required |
| Contrast Level | Sets the degree of contrast adjustment. Values greater than 1 increase contrast, while values between 0 and 1 decrease it. | Optional |
Action Types & Examples
Input Image Path
- Format: string
- Example Result: "C:\Robusta\robusta.jpg"
Output Image Path
- Format: string
- Example Result: "C:\Robusta\grayscale.jpg"
Contrast Level
- Format: decimal
- Example Result: 1.2
Implementation Examples
Field Setup - Input image: C:\Robusta\robusta.jpg - Output image: C:\Robusta\grayscale.jpg - Contrast Level: 177
Execution Parameters - Contrast Level: 0.5 - Contrast Level: 1.2
Technical Notes
The Contrast Level parameter accepts decimal values to control image contrast. Values ranging from 1 to 255 increase the contrast, making the image brighter. Conversely, values between 0 and 1 decrease the contrast. The default contrast level is 1.2.