Image Operations


Pixtel supports various image operations that can be performed on screenshots or imported pictures. Most important image operations covering 80% of image operation use cases are provided in the application. In most of the cases, there is no need for expensive image editing software for handling image operations. The most important image operations Crop and Copy Image Area can be done from the top toolbar. Other than these two, all other image operations can be performed from Image toolbox which can be viewed by clicking on the Image toggle-button on the bottom right-hand side. In the following, Crop and Copy Image Area operations are explained followed by Image toolbox operations.

Image Crop

The image can be cropped using the Crop icon button, , in the top toolbar. This enables cursor to change to Crop cursor. Using the cursor, an area can be selected and by clicking inside the area, image is cropped to selected rectangular size. Crop operation can be canceled by clicking outside the area or pressing escape or right-clicking and closing the tool. See the following example:

Right-click to open Context Menu for selecting Apply Crop or Close.


Image Area Copy 

This is another important image operation that is used very frequently. This operation helps to select an area in the image and copy that area to the clipboard with or without borders. Default border settings are used that can be set through the image toolbox discussed later. In addition, Text can be extracted from the selected rectangular area and also fill the rectangular area with a dominant color in the rectangle, erasing any unwanted content. See the following examples:

Copy Image Area to a Word document: Click on the Image Area Copy icon button. Cursor changes to Area Copy icon. Select a rectangular area on the screen, ex. cat face. Right-click and select Copy Region to Clipboard or use Ctrl+C for copying the area to clipboard. Paste it on the Word document. Move the rectangular area to another cat's face and repeat this process. See the word document with four copied cat faces.

Extract Text from Region: The process is the same as above. However, in this case, select an area that contains text in the page and select Extract Text from Region menu item to obtain the text.

Right click on the selected region and Click on Extract Text from Region menu item.

The extracted text is displayed in a textbox.


Fill with Dominant Color: This is very helpful if there is a need to replace the content with the dominant color in the selected area. This is more or less similar to replacing with a background color. Often times, finding proper background color is difficult. Instead, finding a dominant color is relatively straightforward and easy to use. The following example demonstrates the use.


Image Operations with Toolbox

Image toolbox and associated operations are detailed in the following figure.


Most of these operations can be applied to an entire image and to an image region. However, some operations are restricted to the entire image or to an image region. Image operations are expensive for large images. Moderately sized images, smaller than 2000x2000, operations time tends to be in a few seconds. For large images, it can take more time depending on the type of operation. An area on the image can be selected using a region selection operator from the top toolbar, see top right-hand side of the above image. There are five different types of area selectors supported: 1. Rectangular, 2. Ellipse, 3. Lasso, 4. Polygon, and 5. Curved area selectors. Using these selectors, an area can be marked for image operations. In the following, each of the image operations is detailed with examples.

Image Resize (1)

An image can be resized using this operation. When selected, image resize dialog shows up.

The default resize setting has constrained proportions, i.e., when the height is changed, the width automatically adjusts to maintain the ratio of the image. This ensures the image will not be stretched out. However, adjusting an image to a larger size can result in the image losing quality. Interpolation options help to select the quality of the image for resizing.

Canvas Resize (2)

Image canvas can be resized using this operation. When selected, canvas resize dialog shows up providing various options for resizing, including resize position, width, height, and color.

The position helps to place the image on the canvas. By default, the image is centered on the canvas. Canvas Color is set to fill the canvas background color. By default, it is white.

Rotate Image (3)

It helps to rotate the image clockwise. 

Flip Vertical (4)

Flips the image on the vertical axis. 

Flip Horizontal (5)

Flips the image on the horizontal axis. 

Image Border (6)

This helps to set the image border for the current image. This operation opens a dialog for setting border parameters. 

 

Border style can be selected along with the width and border color. These border parameters can be set as default for future use. 

Image Auto Level (7)

This operation applies the auto level effect on the image. The following example shows the before and after auto-level effect. 

Image Auto Color Correction (8)

This operation applies the auto color correction effect on the image. The following example illustrates the before and after auto color effect.

Brightness & Contrast (9)

Image brightness and contrast can be adjusted using this control. When this operation is invoked, Brightness & Contrast dialog opens up as shown below:

For large images, it is better to uncheck the 'Preview' checkbox to avoid excessive CPU usage. Preview helps to see the effect immediately, based on the Brightness and Contrast values. This checkbox can be enabled after setting Brightness and Contrast values to see a preview. Reset buttons will reset the corresponding values. Click the Apply button to apply the effect. The following example shows the application of this effect.

Change Format (10)

This operation helps to change the image format from the current format. There are various supported format conversion operations provided in the application. The following dialog shows up for changing the format.

bpp stands for bits for pixel. 1-bpp means the current image format is converted into black and white 1 bit per pixel format. Label in the brackets presents the type of color space that is used in the conversion.

Resample Image (10)

Resampling operation helps to change the image resolution. For changing the resolution, select an interpolation value for proper resolution change.

Color Effects (11)

Color effects include 1. Replace Color, 2. Fill Color, 3. Grayscale, 4. Halftone, 5. Posterize, 6. Invert Colors, 7. Black & White, and 8. Desaturate. Except for Grayscale (3) effect, the rest of the effects can be applied to a selected region as well. 

Replace Color: Replaces a selected color with another color. This operation opens a color replacement dialog.

This helps to replace adjacent colors in the color space within the specified Color Tolerance. An example is presented below:

Fill Color: Fills a region or the entire image with a selected color. By default, the application identifies a dominant color and display it as the fill color value. Fill color can be applied to a selected region. In the following, 2003 is selected as a rectangular region and color is replaced with the background color.

Grayscale: Converts the image or a selected region to grayscale. An example conversion is presented below:

Halftone: Converts the image or a selected region to halftone. An example conversion is presented for the above image.

Posterize: Converts the image into a poster form reducing the number of colors in the image for poster printouts. An example is presented below with 32 levels. 

Invert Colors: Inverts the colors in an image. An example is presented below:

Black and White (Adaptive Binarization): An image can be converted into a black and white image using an adaptive binarization approach using various control parameters for adjusting the image binarization quality. In the following, Leena's image is converted into black and white using this approach.

Desaturate: The image is desaturated using this method. For Leena's image, see the desaturation applied to face region in the following. This region was selected using the Lasso tool.

Image Filters (12)

Supported image filters include Dilation, Erode, Emboss, Add Noise, Detect Edges, Canny Edge, Sharpen, and Blur filters. Each of the filters is covered below with examples.

Dilation: Helps to dilate the image or a selected image region. Dilation helps to accentuate features. See an example below for handwritten text.

Erode: This filter helps to apply erosion filter on the image or to a section of the image. Erosion helps to diminish features. See an example below:

Emboss: Emboss filter can be applied to the full image or to a section of the image. Each pixel of an image is replaced either by a highlight or a shadow. Applying an embossing filter to an image often results in an image resembling a metal embossing of the original image or a section of the image. See an emboss filter applied on Leena image:

Emboss filter applied to the full image

Emboss filter applied to a select region.

Add Noise: This filter adds noise to the image. Noise percentage can be specified in the Add Noise dialog. See the following example:

Detect Edges: This filter helps to detect edges in an image. See the following edge detection example for the handwritten text. This filter applies to both colored and grayscale images.

Canny Edges: This filter uses the Canny Edge detection algorithm to detect edges. The image needs to be converted into a Grayscale (8-bpp) image before applying this filter. Otherwise, the application will display an error. See the example below. First, the image is converted into Grayscale using Change Format command and then the Canny Edge filter is applied.

Sharpen: This filter sharpens an image or a section of an image. Often used to unblur the images. See the following example:

Blur: This filter blurs the image, hiding details. See the following example. Note that blur was applied to a selected area on the face,


Image Effects (13)

Various image effects are supported in the application. They include Bevel Edge, Drop Shadow, Oil Paint, Pixelate, Sepia, Solarize, Tile, Mosaic, and Motion Blur. By clicking on the image effect icon (13), the following pop-up window shows up with various buttons for image effects. In the following, each of the effects is outlined.

Bevel Edge: It helps to create a beveled edge around the image. This effect opens a window with various control parameters for the bevel edge. Note that this is not recommended for very large images without a graphics card. See the following bevel edge example.


Drop Shadow: Drop shadow effect shows the shadow of the image behind the image. There are various parameters that can be controlled for proper shadow. Note that this is not recommended for very large images. See an example below:


Oil Paint: This effect converts the image into Oil Painted picture. Radius and intensity levels can be controlled in the pop-up window. See an example below:


Pixelate: Pixelates the image hiding the details. See an example below:


Sepia: This operation converts an image into a sepia image. See an example below:

Solarize: This operation converts image with reversed in tone by converting dark areas to light and light areas to dark. See an example below:

Tile: This operation converts images with glass tile overlay on top. See an example below:

MosaicThis operation converts an image into a mosaic image. See an example below:


Motion BlurThis operation creates a motion blur in the image. See the example below. Motion blur is applied to Cheeta by selecting the object using the Lasso tool.

Image Formats

Pixtel can open images in various formats. However, once they are imported, they are maintained in Png, Jpg, Tiff and Bmp formats. Any other import format other than Png, Jpg, Tiff, and Bmp, is converted into Png format internally for supporting annotations and image transformations. Decoders and encoders supported in the application are listed below with format types.

  1. Tiff (decoder, encoder): Supported extensions: *.tif *.tiff
  2. Gif (decoder,encoder): Supported extensions: *.gif
  3. Png (decoder, encoder): Supported extensions: *.png
  4. Jpeg (decoder, encoder): Supported extensions: *.jpg *.jpeg
  5. Bmp (decoder, encoder): Supported extensions: *.bmp










Pixtel | Capture. Share. Manage.