Showing posts with label vector. Show all posts
Showing posts with label vector. Show all posts

Monday, September 21, 2015

Raster vs Vector Graphics

Computer graphics that are interactive and mutable undergo mathematical transformations. Depending on user’s actions, the computer will take in that information and use different linear algebra principles to transform the image in the way the user intends. These transformations use matrix multiplication to change the graphic.

In order for computer programs or applications to manipulate images they read the image as a matrix, where each entry is a pixel value. Each pixel value is a combination of red, green, or blue (RGB) because computer screen use light, additive color. 
Additive color structure

Different programming languages have built-in libraries with functions that can be used to manipulate individual pixel values. At this point, manipulating graphics refers to filters (black and white, sepia tone, brightness, etc.) applied to images. The programs use nested for loops, or commands encapsulated within each other that run pieces of code for a given number of iterations, to comb through the elements of the two dimensional array. The types of images that would experience manipulations like photo filters are called raster graphics. These are collections of pixels on the screen and they do not have the same mathematical properties as vector graphics. Vector graphics can be scaled and not loose data or quality. This is because they are not just a matrix of pixels, they are defined by paths, curves, and end points. 


Raster graphics are often photos and
vector graphics are usually logos or models.

If a raster image image1 is defined as a matrix and it is being scaled to twice its size then the resulting matrix would have duplicate data  matrix . This redundancy of both rows and columns manifests itself as a pixelated image. When a high quality image is scaled down to a smaller size and saved or stored that way, the data of the image can be lost.

Example of loss of data causing pixelation.

This does not occur with vector images because they are not themselves matrices of image values. Vector shapes are matrices that are read and interpreted differently than rasterized images. 

Example of controls to make vector image.

One area of computer graphics that heavily uses vector shapes is in logos. Logos have to reshaped and resized for different platforms and merchandise. Because vector graphics are stored as paths and points they can be translated and scaled for different programs that read in vector graphics. For example, a pamphlet made in Adobe Illustrator can read in a vector graphic and scale it to a small size without it looking distorted. Additionally, a company that creates billboards can use that same vector graphic file and feature a logo that is completely not pixelated. Vector shapes are also greatly preferred because of the multiple platforms on which media is viewed. A logo can appear crisp on a TV screen and mobile phone.

Thursday, September 13, 2012

Casino Royale

      My favorite movie franchise of all time is Albert Broccoli and Eon Production's depiction of James Bond.  Strangely enough, both Mr. Broccoli and I share the nickname "Cubby!"  Back on topic though, I find it impressive that the Bond series stays fresh and enjoyable despite having more than twenty movies.  Sure it may be the same spy premise every time, but if it's not broken, why change it?  Aside from how entertaining the films are, I also love the title sequences.
      Everyone knows the gun barrel sequence, which may be perhaps the most recognizable aspect of the series aside from the theme music.  What I like more than the famous gun barrel sequence is the intro credits.  They all follow some sort of theme from the movie.  Of all the intros, I like Casino Royale's the best.  The theme it follows is playing cards, which constitutes the latter half of the film.
      There are so many subtle aspects of this intro that get often overlooked.  For example, at about 1:36 when the crosshair passes over the queen's face, it reveals the face of the lead actress.  At the end of the sequence, there are cards flying around but over time they change into British pounds if you look closely.  What I would like to replicate or learn how it was done would be at 2:16 when the gun fires and streaks fly out in different directions.  It makes me wonder if it was done with an expression or perhaps when they assembled it they set it to random and it just happened to create that design.  A better question might be how many people did it take to put this together!