UNIT-2 Image Editing
UNIT-2 Image Editing
Vector images tend to be smaller than bitmap Bitmap images tend to be larger than vector
images, That’s because A vector image just has to images.a bitmap image has to store color
store the mathematical formulas that make up the information for each individual pixel that forms the
image, which take up less space. image.
Vector images are also more scalable than bitmap When a bitmap image is scaled up you begin to see
images. When a vector image is scaled up, the the individual pixels that make up the image. This is
image is redrawn using the mathematical formula. most noticeable in the edges of the image. There
The resulting image is just as smooth as the are ways of making these jagged edges less
original. noticeable but this often results in making the image
blurry as well
vector formats are not well supported on the web. The two most popular image formats used on the
Most vector images must first be converted into Web, GIF and JPEG are bitmap formats.
bitmaps images (or rasterized) before they can be
used on the Web. An exception is the SWF format
used to create animations using Macromedia’s
Flash animation software.
Vector formats, on the other hand, are better for Bitmap formats are best for images that need to
images that consist of a few areas of solid color. have a wide range of color gradations, such as most
Examples of images that are well suited for the photographs.
vector format include logos and type.
Some of the most common vector formats include JPEGs, GIFs, and BMP images, for instance, are all
AI (adobe Illustrator), DXF (AutoCAD DXF), and pixel images known as raster or bitmap graphics.
CGM (Computer Graphics Metafile).Vector graphics These bitmap graphics therefore have a fixed
can also be found in EPS (Encapsulated PostScript) resolution or number of pixels in the grid, measured
and PDF (Portable Document Format) formats. by pixels per inch (PPI).
An image editor or photo editor is a software program used to edit or otherwise manipulate an image or graphic. A
commonly used advanced image and graphic editor is Adobe Photoshop. Users using Microsoft Windows may also
use the pre-installed MSPaint program for an image editor.
One of the characteristics of modern photography is that image editing has become a central part of the process.
There are two basic ways that images can be adjusted. Pixel editing works at the pixel level and requires altering the
original image. Parametric Image Editing works by saving instruction sets that change the appearance of images
without actually changing the original image data. The differences between these two methods have a lot of
implications for how you approach image editing.
Pixel editing
In the most basic kind of image editing, you must actually alter the image pixels to make a change. So, to make a
JPEG more blue, you increase the amount of blue in the pixels, compared to those of red and green. When you save
the file, you've made a "destructive" change to the image, since you've replaced the original color information with
new color information. We call this destructive because the original image no longer exists (unless you made a copy),
even though you might have improved the image.
One of the prerequisites for many of the applications mentioned below is a method of selecting part(s) of an image,
thus applying a change selectively without affecting the entire picture. Most graphics programs have several means
of accomplishing this, such as:
a magic wand tool that selects objects or regions in the image defined by proximity of color or luminance,
as well as more advanced facilities such as edge detection, masking, alpha compositing, and color and channel-
based extraction. The border of a selected area in an image is often animated with the marching ants effect to help
the user to distinguish the selection border from the image background.
Layers
Another feature common to many graphics applications is that of Layers, which are analogous to sheets of
transparent acetate (each containing separate elements that make up a combined picture), stacked on top of each
other, each capable of being individually positioned, altered and blended with the layers below, without affecting any
of the elements on the other layers. This is a fundamental workflow which has become the norm for the majority of
programs on the market today, and enables maximum flexibility for the user while maintaining non-destructive
editing principles and ease of use.
Image editors can resize images in a process often called image scaling, making them larger, or smaller. High image
resolution cameras can produce large images which are often reduced in size for Internet use. Image editor
programs use a mathematical process called resampling to calculate new pixel values whose spacing is larger or
smaller than the original pixel values. Images for Internet use are kept small, say 640 x 480 pixels which would equal
0.3 megapixels.
Cropping an image
Digital editors are used to crop images. Cropping creates a new image by selecting a desired rectangular portion
from the image being cropped. The unwanted part of the image is discarded. Image cropping does not reduce the
Histogram
Image editors have provisions to create an image histogram of the image being edited. The histogram plots the
number of pixels in the image (vertical axis) with a particular brightness value (horizontal axis). Algorithms in the
digital editor allow the user to visually adjust the brightness value of each pixel and to dynamically display the results
as adjustments are made. Improvements in picture brightness and contrast can thus be obtained.
Noise reduction
Image editors may feature a number of algorithms which can add or remove noise in an image. Some JPEG artifacts
can be removed; dust and scratches can be removed and an image can be de-speckled. Noise reduction merely
estimates the state of the scene without the noise and is not a substitute for obtaining a "cleaner" image. Excessive
noise reduction leads to a loss of detail, and its application is hence subject to a trade-off between the undesirability
of the noise itself and that of the reduction artifacts.
Noise tends to invade images when pictures are taken in low light settings. A new picture can be given an 'antiqued'
effect by adding uniform monochrome noise.
Most image editors can be used to remove unwanted branches, etc., using a "clone" tool. Removing these distracting
elements draws focus to the subject, improving overallcomposition.
Notice the branch in the original The eye is drawn to the center of the globe
Some image editors have color swapping abilities to selectively change the color of specific items in an image, given
that the selected items are within a specific color range.
Image orientation
Image editors are capable of altering an image to be rotated in any
direction and to any degree. Mirror images can be created and images
can be horizontally flipped or vertically flopped. A small rotation of
several degrees is often enough to level the horizon, correct verticality(of
a building, for example), or both. Rotated images usually
require cropping afterwards, in order to remove the resulting gaps at the
image edges.
Image orientation (from left to right): original, −30° CCW rotation, and flipped.
Some image editors allow the user to distort (or "transform") the shape of an
image. While this might also be useful for special effects, it is the preferred
method of correcting the typical perspective distortion which results from
photographs being taken at an oblique angle to arectilinear subject. Care is
needed while performing this task, as the image is reprocessed
using interpolation of adjacent pixels, which may reduce overall image definition.
The effect mimics the use of a perspective control lens, which achieves a similar
correction in-camerawithout loss of definition.
Perspective control: original (left), perspective distortion removed (right).
Lens correction
Photo manipulation packages have functions to correct images for various lens distortions including
pincushion, fisheye and barrel distortions. The corrections are in most cases subtle, but can improve the appearance
of some photographs.
Enhancing images
In computer graphics, the process of improving the quality of a digitally stored image by manipulating the image with
software. It is quite easy, for example, to make an image lighter or darker, or to increase or decrease contrast.
Advanced photo enhancement software also supports many filters for altering images in various ways.[1] Programs
specialized for image enhancement are sometimes called image editors.
Photomontage of 16 photos which have been digitally manipulated inPhotoshop to give the impression that it is a real
landscape
Many graphics applications are capable of merging one or more individual images into a single file. The orientation
and placement of each image can be controlled.
When selecting a raster image that is not rectangular, it requires separating the edges from the background, also
known as silhouetting. This is the digital analog of cutting out the image from a physical picture. Clipping paths may
be used to add silhouetted images to vector graphics or page layout files that retain vector data. Alpha compositing,
allows for soft translucent edges when selecting images. There are a number of ways to silhouette an image with soft
edges, including selecting the image or its background by sampling similar colors, selecting the edges by raster
tracing, or converting a clipping path to a raster selection. Once the image is selected, it may be copied and pasted
into another section of the same file, or into a separate file. The selection may also be saved in what is known as
an alpha channel.
A popular way to create a composite image is to use transparent layers. The background image is used as the
bottom layer, and the image with parts to be added are placed in a layer above that. Using an image layer mask, all
but the parts to be merged are hidden from the layer, giving the impression that these parts have been added to the
background layer. Performing a merge in this manner preserves all of the pixel data on both layers to more easily
enable future changes in the new merged image.
Slicing of images
A more recent tool in digital image editing software is the image slicer. Parts of images for graphical user interfaces
or web pages are easily sliced, labeled and saved separately from whole images so the parts can be handled
individually by the display medium. This is useful to allow dynamic swapping via interactivity or animating parts of an
image in the final presentation.
The Clone Stamp tool selects and samples an area of your picture and then uses these pixels to paint over any
marks. The Clone Stamp tool acts like a brush so you can change the size, allowing cloning from just one pixel wide
to hundreds. You can change the opacity to produce a subtle clone effect. Also, there is a choice between Clone
align or Clone non-align the sample area. In Photoshop this tool is called Clone Stamp, but it may also be called a
Rubber Stamp tool.
Gamma correction
In addition to the capability of changing the images' brightness and/or contrast in a non-linear fashion, most current
image editors provide an opportunity to manipulate the images' gamma value.
Gamma correction is particularly useful for bringing details that would be hard to see on most computer monitors out
of shadows. In some image editing software this is called "curves", usually a tool found in the color menu, and no
reference to "gamma" is used anywhere in the program or the program documentation. Strictly speaking, the curves
tool usually does more than simple gamma correction, since one can construct complex curves with
multiple inflection points, but when no dedicated gamma correction tool is provided, it can achieve the same effect.
Color adjustments
The red-eye effect, which occurs when flash photos are taken when the pupil is too widely open (so that light from the
flash that passes into the eye through the pupil reflects off the fundus at the back of the eyeball), can also be
eliminated at this stage.
Printing
.
Controlling the print size and quality of digital images
requires an understanding of the pixels-per-inch (ppi)
variable that is stored in the image file and sometimes
used to control the size of the printed image.
Within Adobe Photoshop's Image Size dialog, the
image editor allows the user to manipulate both pixel
dimensions and the size of the image on the printed
document. These parameters work together to
produce a printed image of the desired size and
quality. Pixels per inch of the image, pixel per inch of
the computer monitor, and dots per inch on the
printed document are related, but in use are very
different. The Image Size dialog can be used as an
image calculator of sorts. For example, a 1600 × 1200
image with a resolution of 200 ppi will produce a
printed image of 8 × 6 inches. The same image with
400 ppi will produce a printed image of 4 × 3 inches.
Change the resolution to 800 ppi, and the same
Control printed image by changing pixels-per-inch image now prints out at 2 × 1.5 inches. All three
printed images contain the same data (1600 × 1200
pixels), but the pixels are closer together on the
smaller prints, so the smaller images will potentially
look sharp when the larger ones do not. The quality of
the image will also depend on the capability of the
printer.