ImageProcessing

From SweepMe! Wiki
Jump to navigation Jump to search

The ImageProcessing module is a versatile tool within SweepMe! that enables users to load an image and apply a variety of transformation steps using OpenCV (cv2) functionalities. This module simplifies image manipulation by allowing users to create custom processing pipelines tailored to their needs. It is ideal for automating image processing tasks in research, testing, or other technical applications.

Key Features

  • Flip: Flip the image horizontally, vertically, or both.
  • Threshold: Apply a binary or adaptive threshold to emphasize or isolate image features.
  • Crop: Select and retain a specific region of the image while discarding the rest.
  • Gray Scale: Convert the image to gray scale for simpler processing or analysis.
  • Gamma Correction: Adjust the brightness and contrast of the image using gamma correction.
  • Invert: Invert the colors of the image, transforming it to a negative form.
  • Blur: Apply blurring filters such as Gaussian blur to reduce noise or detail.
  • Resize: Resize the image to desired dimensions for uniform scaling or downsampling.
  • Save: Save the processed image in a format of your choice: PNG, JPG, or TIFF.

Processing Pipeline

One of the most powerful features of the ImageProcessing module is the ability to create a customizable processing pipeline. Users can:

  • Add multiple transformation steps to the pipeline, with the flexibility to use each step more than once or not at all.
  • Adjust the parameters of each transformation to fine-tune the image processing workflow.
  • Rearrange the order of the steps to achieve different results based on the desired processing sequence.

Hotkeys

The ImageProcessing module supports several keyboard shortcuts to streamline the management of your processing pipeline:

  • PageUp/PageDown: Move the selected processing step up or down in the pipeline order.
  • Del: Delete the currently selected processing step from the pipeline.
  • Arrow Keys: Navigate between steps in the pipeline using the up, down, left, and right arrow keys.

Save Options

Once the image processing is complete, users can save the image in the desired format, choosing between PNG, JPG, or TIFF file formats, depending on their use case or quality requirements.

Application

The ImageProcessing module is perfect for engineers, scientists, and developers who need to automate image transformation tasks for analysis, testing, or documentation. Whether it’s simplifying an image for measurement, enhancing visibility, or preparing images for reports, this module offers a comprehensive solution.