9. Graphics
All Past Paper Questions: https://docs.google.com/document/d/1Wx551YT0F35Ca0DI4uQ0bNIO0xf0-jFKEjCNY9tOkkE/edit?usp=sharing
Questions left out:
- p3-ch11-pg64
Bitmap Images
- how its stored
- Made up of pixels
- Each pixel represented by bits
- 1 to 64 bits per pixel
- Number of pixels depending on colour depth
- Bits representing pixels packed in rows for bmp
- Rows rounded to 32 bit words
- Padding needed for loading into memory locations
- (Usually) stored from bottom left up to top right of image.
Compression
- why
- reduce file size
- use less storage
- faster file transmission
- emails
- loading web pages
- low image resolution for small screens
- glitch art can make use lossy compression artefacts to alter images
- JPEG (lossy) might have artefacts
- reduce file size
Lossy Compression
-
how (1)
- Images are reduced in quality
- Information is lost forever
- cannot be restored
- algorithm removes areas with low detail more than areas of high detail
- so image is changed from original
- compression artefacts may appear
- Image quality reduced with repeated compression
- because at each compression, more image information is lost
-
analysis / how (2)
- Loss of image data
- has visible effect
- image quality is reduced
- Compression artefacts
- produced during compression
- can be visible
- so, reduce image quality
- Sudden changes in colour in an image can cause rings near the edges
- Conversion of a gradation in tone by loss of data into fewer tones causes posterisation
- False edges created
- contouring
- because reduction of grey levels
- Loss of data in curves
- low quality due to
- low colour depth
- Reduction in resolution
- might can mistake text in images and change the meaning
- e.g. 6 mistaken for 8.
- Loss of image data
-
justify the use (of lossy compression)
- (basically the same thing as above)
- reduces data needed to represent images (& reconstruct)
- reduces file size
- can store more images in same disk space
- can transfer files quickly
- reduced load time
- better user experience
- can attacth to emails, without exceeding file sizes
- can post on social media (optimized)
- comprehension artifacts can be used by artists to enhance visual impacts on images
Lossless Compression
- description
- no information is lost
- Image is recreated with no difference from the original
- Works well with images with blocks of similar pixels
- because only need to store data for one pixel and number of pixels
- No loss of quality
- algorithms can reconstuct original pixels lost by compression
Editing
Editing Techniques
- editing techniques
- Cropping of images to remove unwanted areas
- use of rule of thirds to keep image visual balance
- can lose important detail if poorly used
- Colour balance adjustment to change 'feel' of image
- whiter to create warm mood
- bluer to create cooler feel
- restore natural colour to flesh tones
- Brightness changes to change of image
- increase in contrast for photos taken on dull days can show more detail
- decrease in contrast for photos taken in bright sun can increase detail in shadows
- replacing an object in the image
- combining elements of different photos to create a new photo.
- covering part of the image with another object
- Creating a digital illustration (of original photo)
- Changing to a different background
- Create an illusion of depth
- Create special effects
- Adjusting the image itself
- change the transparency of an image
- resizing of photos
- reducing noise in the image
- correcting lens distortion/perspective.
- Cropping of images to remove unwanted areas
Editing Tools
-
morphing (sad face -> happy face)
- Uses forward mapping of pixels from one image into next
- sad face mapped to new position in smiling face
- Setting of control points in start image to map exactly to points in final image
- Pixels in start image mapped to points in final image that are determined by 'weighting'
- Gaussian function in software
- Pixels next to control point move more than those further away/
- less than control points
- Pixels further away from control point are less affected by software algorithm so move less.
-
morphing (bird flying)
- question
- answer
- Warping (deforming) from the original images so final image has same shape
- use of forward mapping
- each pixel in original image is mapped to an appropriate
- pixel in final image
- use of reverse mapping
- each pixel in the final image is sampled for an usable pixel in the original
- all final image pixels are mapped to an original image pixel
- Cross-dissolving the images
- a sequence of images shows a gradual fade from one to the other
- via a (series of) transition images
- original image is gradually distorted and faded out
- final image starts out totally warped to the first and is faded in.
- Warping (deforming) from the original images so final image has same shape
- question
Editing Tools - Examples
-
question 1

- answer
- Photographs opened in image editor
- Person image cut out from photograph 1
- Mask around person is created to cover background
- Selection to be cut is highlighted/drawn
- Selection is modified around edges to ensure accuracy
- Using of adjustable nib for drawing tool
- Cut unwanted parts of image of woman
- Background of cut image changed to transparent
- Copy cut out (to clipboard)
- Create new layer for image of woman
- Import/paste cut out into image of office/photograph of office/Fig. 10.2
- Place new image in correct
- Resize image of woman (as required to fit in image of office)
- Bring to front/back as necessary
- Flatten/merge layers (if required)
- Correct new image for overlap/misplaced parts/pixels of imported image
- Crop area of new image/photograph 2 as required.
-
question 2

- answer
- Removal of Private barrier structure:
- Freehand selection tool to select structure
- Cut tool to remove object from the image
- Colour picker tool to select background behind barrier
- Paint tool to fill in area where barrier removed
- "content aware fill" or use the spot healing brush tool
- blend backgrounds where
- select and copy and paste to disguise where shadow of barrier was on path
- Addition of new lamp post:
- Freehand select tool to select lamp post
- Copy tools to copy lamp post to clipboard (leaving existing in place)
- paste new lamp post into new layer
- Position new lamp post as required
- Clean up pasted image:
- Colour picker tool to select colour to be painted into edges of added image
- paint tool used to fill pixels around image to make it 'blend' in
- Use of appropriate brush size
- Adding text for title:
- Create new layers for text and path
- Type text and create path for the text
- Use text to path to create shaped text
- Position text
- Remove temporary layers
- (used to construct title)
- Finalising image:
- Merge layers to 'flatten' image.
- Removal of Private barrier structure:
-
question 3

- answer
- Perspective tool has been used (to correct perspective)
- by 'stretching' the image across the top
- to align the sides of the stores
- Rotate right tool used to an building infrotn
- Curtains (in left windows)
- inserted by copy & paste
- using right-hand set (as source)
- cropped to remove some building
- resized to improve aspect ratio.
- Perspective tool has been used (to correct perspective)
-
question 4
- part 1

- answer
- Crop tool to show the face only
- Border line added to the whole image
- Resize tool to make image larger
- Saved as compressed (JPEG) format
- part 2

- answer
- both 1 & 2 - are saved as a bitmap
- Bitmaps are made of pixels
- 2 - is a compressed image with too much compression
- Loss of pixels
- details in face are lost
- compression artefacts visible to the human eye
- 2 - large to be seen by human eye
- When enlarged, it becomes more visible
- The face now looks unrealistic(/blocky)
- part 1
-
question 5

- answer
- reate new canvas/image on whic to compose the na imageo e sna
- Copy and paste/scan all components into the new canvas so that they are ready for editing
- Ensure that all backgrounds of all shapes are set to transparent to allow overlap of
- Shape 1 has part of the image cut out/erased to produce the eye shape
- Shape 1 is copied and pasted to produce two images for the eyes of the snail
- Shape 2 is inverted/fiipped horizontally (across the vertical plane) and resized larger/enlarged for the shell
- Shape 3 is rotated by 90 degrees and inverted horizontally to form one of the antennae
- resulting shape is copied and pasted and stretched horizontally to form the second antenna
- Shape 4 is resized, filled with black to form the body of the snail
- All the shapes are positioned/aligned together/grouped to form the composite cartoon snail
- Brush tool with size is used to ensure that the join between shape 2/shell and shape 31body is complete/no gaps are left
- used to add dotted line at base of shell/shape 2
- Text is added and rotated left by 90/right by 270 degrees
- text is positioned as shown
- Conwnents are grouped and resized together to form final image.
Impacts of Editing
-
politics
- fake news
- altering photos
- adding peopl to unrelated places
- to make people beleive he participated
- removing people
- to make them beleive he did not participate
- retouching images
- to make them more attractive
- viewers unaware if image if manipulated
- fake news
-
fashion magazines
- enhance appearance of items/models
- attract attention of viewer
- to compensate for
- reduction in attention span (in recent years)
- make poor photos appear neat
- (to increase sales)
- cheap than taking perfect photos
- making models look nice
- Removing blemishes, wrinkles, flabby parts
- altering body shape
- A unrealistic body image (is created)
- models can lower viewers self-esteem
- cause eating disorders
- cause unnecessary pressure
- to confirm to unrealistic ideals
- takes time
- so, slows down production
Uses
-
photography (website)
- use thumbnails of large image to show photograph
- terms
- bitmaps
- made of pixels
- created from existing pixel data
- stored in an array in memmory
- thumbnail
- are smaller verions
- to load/display quickly
- contain links to larger versions of same file
- are smaller verions
- bitmaps
- evaluvation
- Pixel values may be modified individually
- Photographic quality achieved by increasing the data about each pixel
- or number of pixels
- (in vectors, whole image must change)
- use compression to reduce file size
- Bitmap files translate well (eg: when printing)
- large file size, when large no. of colors
- techniques to view image quickly
- Data compression
- introduce artefacts that 'spoil' images
- slow down the reading
- (decompression should happen)
- enlarging causes pixellation
- support transparency so can be used on any background.
-
for the web
- can be stored in many formats
- easy to produce
- can be output from many apps
- created from 2 dimentional arrays of pixels
- can display many colors
- depending on bits per pixel
- can display gradients / grayscales
- photo realistic
- can edit to be more attractive
- can easily translate to dot format
- printers / CRTs
- can be used in simple animations
- eg: animated GIFs
- can compress to reduce loading times
