Graphics Flashcards
Which one case below is not a good illustration for application of computer graphics?
A) DALL-E 2 is a new artificial intelligence system that can produce realistic images and art from a description in natural language.
B) Scene depiction in NASA’s Gemini era flight simulators depended on the use of television cameras and fake “spacescapes”. Models or large photographs of the Earth from space provided scenes that were picked up by a television camera on a moving mount. Signals from the computers moved the camera, thus changing the scene
visible from the spacecraft “windows,” actually monitors.
C) Some animation for the first Star Wars film was created by Larry Cuba in the 1970s at the Electronic Visualization Laboratory (EVL) of the University of Illinois at Chicago. This included a rotating blueprint of the Death Star space battle station produced on a vector monitor connected to a PDP-11/45 computer.
D) Pixar uses its proprietary photorealistic 3D rendering software RenderMan to produce their in-house 3D animated movies.
B)
Three independent fundamental elements of image formation are usually considered to be: _____, visible spectrum of which excites receptors in human visual system; _____, which exists in space and can be synthetic as well, and _____, which is someone or something that provides means of forming images from the former. Note: Please submit
your answers as singular nouns.
light, object, viewer
Virtually in all modern graphics systems the image we see on the output device is an array of smallest picture elements produced by this system, each called a(n) _____. Collectively this array, called the _____, is stored in a part of memory called the _______.
pixel, raster, framebuffer
How many colors can be displayed in a graphical system with a 16-bit-deep framebuffer?
2^16
The main principle of three-color theory is that if two colors produce the same tristimulus values (responses of the three types of cone receptor cells), then they are visually indistinguishable. Hence a display needs to vary the intensity of only three primary colors to produce a needed color for a human observer. While ________ color models are used where an initially black display is lightened up by primary colors, ________ color models are used, for example, in printing or painting where colored pigments remove color components from light that is striking the surface.
additive, subtractive
In a most popular additive color model named RGB the acronym stands for _______.
A) red-green-blue model
B) Rosencrantz-Guildenstern-Brahe model
C) randomly generated beams model
D) raster graphics binary model
A)
A _______ ________ is a simple example of optical imaging systems that helps to compute the image using equations of simple perspective. It led directly to the conceptual foundation for modern three-dimensional computer graphics. The paradigm known as _________-_________ model is the basis for a number of popular APls, including OpenGL and Direct3D. It is similar to the previous model, but avoids the issue of flipped image of the object by introducing the projection plane.
pinhole camera,
synthetic-camera
What is the main advantage of the original Bresenham’s line drawing algorithm over the standard DDA (digital differential analyzer) algorithm?
A) It helps with drawing lines of different thickness.
B) It helps with drawing lines appearing smoother on the screen.
C) It helps with drawing lines using different colors.
D) It helps with drawing lines using integer operations.
D)
Considering image formation as a two-step process first became important in computer-aided design and animation where, due to the limitations of the hardware the first step named _______ (which is about developing a mathematical coordinate-based representation of any object by defining edges, vertices, and polygons) needed to be separated from the second step named ________ (that is the process of generating an image by means of a computer program).
modeling, rendering
Which of the following formulas is most relevant for modeling surface of a cylinder with radius r and height h, oriented along the z-axis and centered at the origin of the coordinate system as shown on the scheme below?
A) x= rcosa, y = rsina, z = hsina (0 ≤ a ≤ 2pi)
B) x= rcosa, y = rsina (0 ≤ a ≤ 2pi), 0 ≤ 2 ≤ h
C) x = rcosa sinß, y = r*cosa cosß, z = € [0. h] (0 ≤ aB ≤ 2pi)
D) x= rcosa sinß, y = r cosa cosß, z = r sina (0 ≤ aB ≤ 2pi)
B)
HTMLS ______ element represents an immediate mode bitmapped area of the screen that can be manipulated with JavaScript. The basic API includes also the ____ context that allows a programmer to draw various shapes, render text, and display images directly onto a defined area of the browser window.
canvas, 2D
If the following HTML code shows “hello, world!” on the web page, it means that ___________
‹canvas id-“my-canvas”>hello, world!</canvas>
A) the browser supports the HTMLS canvas clement.
B) the browser supports javaScript and it is not disabled.
C) programmers cannot imagine anything better since Brian Kernigan in 1978
D) the browser does not support the HTMLS canvas element or lavaScript is disabled.
D)
Your RGB monitor has got a defective cable so that the R, G, and B outputs from the computer are respectively attached to the G, R, and B inputs on the monitor. When one attempts to display the following colors, what colors will actually appear on the screen? Red will appear as ______, yellow as _______, and white as ________. Note: Do not use abbreviations.
green, yellow, white
You write a program to read and process TGA image files. One of the 8-bit fields in the file header is called Pixel Depth. Which one statement below about it is not correct?
A) The value stored in this field correlates with the size of the file in bytes.
B) Common values stored in this field are 8, 16, 24 and 32.
C) This field defines the number of different colors that can be used in the image.
D) This field indicates the number of alpha channel bits per pixel.
D)
What will be the size of the image data in bytes for a raster image with the following specifications?
Image width: 800, image height: 480, pixel depth: 24
800400(24/8) = 1152000
You have got access to the image data through a data array of bytes, where each pixel is represented by three one-byte values - red, green, and blue, in that order. You can manipulate these values to implement various image filters. Which pseudo-code below best matches turning a full-color image into a greyscale one?
A) data (i] = data[i] ? 127 : 0;
data[i+1] = data[i+1] ? 127: 0;
data[i+2] = data[i+2] ? 127: 0;
B) a = (data[i] + data[i+1] + data[i+2])
/ 3;
data[i] = a; data[i+1] = a; data[i+2] = a;
C) data[i] = 255 - data[i] ;
data[i+1] = 255 - data[i+1]:
data[i+2] = 255 - data[i+2] ;
D) data[i] = data[i] ;
data[i+1] = 0; data[i+2] = 0;
B)
Indexed color provides a solution that allows displaying a wide range or colors as tong as the application does not need more colors than could be referenced by a pixel. When an image is encoded in this way, color informaton is not directly carried by the image pixel data, but is stored in a separate array of color specifications called a color lookup table, _______ ______ or palette. Every element in this array represents a color, indexed by its position within the array. Each image pixel does not contain the full specification of its color, but only its index in the palette.
color map
You are learning the GIF89a specification to develop a module to process GIF image files. Right after the 6-byte Header comes the 7-byte Logical Screen Descriptor. Several fields are packed into the fifth byte of this descriptor as per the scheme below:
+——————+——————-+———–+———————–+
| Global Color | Color Resolution | Sort Flag | Size of Global |
| Table Flag | | | Color Table |
+——————+——————-+———–+———————–+
| Bit 7 | Bits 6-5-4 | Bit 3 | Bits 2-1-0 |
+——————+——————-+———–+———————–+
If the Global Color Table Flag is set to 1, the value in the 3 least significant bits (0-2) of the byte is used to calculate the number of bytes contained in the Global Color Table. You want to get this size value from the given one-byte value of the packedfield variable. Which operation does not match this goal?
A) size = packedfield % 8, where % is division remainder operation
B) size = packedfield «_space;5»_space; 5, where «_space;and»_space; are bitwise left and right shift operations respectively
C) size = packedfield & 0x07, where & is bitwise AND operation
D) size = packedfield / (2**3), where ** is exponentiation operation
D)