Introduction to graphics

519 views 47 slides Jun 08, 2021
Slide 1
Slide 1 of 47
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47

About This Presentation

Introduction to graphics
Mrs.Sowmya Jyothi
Assistant Professor
Mangalore


Slide Content

Introduction to Computer Graphics and
Display Systems
The objective of this chapter is
Tounderstandthebasicsofcomputergraphics.
Tobeawareofapplicationsofcomputergraphics.
Toknowtheelementsofcomputergraphics.
1MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

ComputerGraphicsistheuseofcomputerstodisplayand
manipulateinformationingraphicalorpictorialform,eitherona
visual-displayunitorviaaprinterorplotter.
Computergraphicsinvolvesdisplay,manipulationandstorageof
picturesandexperimentaldataforpropervisualizationusinga
computer.
Itprovidesmethodsforproducingimagesandanimations
(sequenceofimages).Itdealswiththehardwareaswellas
softwaresupportforgeneratingimages.
In1960,WilliamA.Fetter,anartdirectoratTheBoeingCompany
inSeattle,Washington,coinedtheterm“computergraphics.”
2MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

COMPUTERANIMATION
Computeranimationistheartofcreatingmovingimagesvia
theuseofcomputers.Itisasubfieldofcomputergraphicsand
animation.Increasinglyitiscreatedbymeansof3Dcomputer
graphics.
Animation:referstothesimulationofsequenceofimages
overtime.
3MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

INTRODUCTION TO IMAGE AND OBJECTS
Animageisbasicallyrepresentationofarealworldobjectona
computer.Itcanbeanactualpicturedisplay,astoredpageina
videomemory,orasourcecodegeneratedbyaprogram.
Mathematically,animageisatwo-dimensionalarrayofdata
withintensityoracolorvalueateachelementofthearray.
Objectsarerealworldentitiesdefinedinthree–dimensional
worldcoordinates.Incomputergraphicswedealwithboth2D
and3Ddescriptionsofanobject.
4MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

5MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

1.CAD(Computer-AidedDesign)-Amajoruseofcomputer
graphicsisindesignprocesses,particularlyforengineeringand
architecturalsystems.Computer-Aideddesignmethodsare
routinelyusedinthedesignofbuildings,automobiles,aircraft,
spacecraft,computers,textilesandmanyotherproducts.
AnimationsareoftenusedinCADapplications.
2.PresentationGraphics-Itisusedtoproduceillustrationsfor
reportsortogenerateslidesforusewithprojectors.
Presentationgraphicsisusedtosummarizefinancial,statistical,
mathematical,scientificandeconomicdataforresearchreports,
managerialreportsandothertypesofreports.Examplesof
presentationgraphicsarebarcharts,linegraphs,surfacegraphs,
piechartsanddisplaysshowingrelationshipsbetween
parameters.
6MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

3.ComputerArt
Avarietyofcomputermethodsareavailableforartistsfor
designingandspecifyingmotionsofanobject.
Computergraphicsmethodsarewidelyusedinbothfineart
andcommercialartapplications.
Tocreatepictures,theartistusesacombinationof3D
modelingpackages,texturemapping,drawingprogramsand
aCADsoftware.Forexample:Cartoondrawingproducedwith
apaintbrushprogram.
7MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

4. Entertainment –
Inmakingmotionpictures,musicvideosandtelevision
shows,computergraphicsmethodsarewidelyused.
Graphicsobjectscanbecombinedwithliveactionsorcanbe
usedwithimageprocessingtechniquestotransformone
objecttoanother(morphing).
8MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

5.EducationAndTraining–
Computer-generatedmodelsofphysical,financialand
economicsystemsareoftenusedaseducationalaids.
Computergraphicscanmakeusunderstandthefunctioningof
asysteminabetterway.
Insometrainingsystems,graphicalmodelswithsimulations
helpatraineetotraininvirtualrealityenvironment.
Forexample,practicesessionortrainingofshipcaptains,
aircraftpilots,airtrafficcontrolpersonnel.
9MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

6. Visualization
The numerical and scientific data are converted to a visual form
for analysis and to study the behavior called visualization.
Producing graphical representation for scientific data sets are
called scientific visualization.
Business visualization is used to represent the data sets related
to commerce and industry.
The visualization can be either 2D or 3D.
For analyzing scientific, engineering, medical and business data or behavior where we have to deal with large amount of information, it is very tedious and ineffective process
to determine trends and relationships among them. But if it is converted into visual form, it becomes easier to understand. This process is termed as visualization.
10MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

7.ImageProcessing
Computergraphicsisusedtocreateapicture.
Image processing applies techniques to modify or interpret
existing pictures. One can improve picture quality through image
processing techniques.
Toapplyimageprocessingmethods,theimagemustbedigitized
first.
Medicalapplicationsalsomakeextensiveuseofimageprocessing
techniquesforpictureenhancements,simulationsofoperations,
etc.
11MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

8. Graphical User Interface
Nowadays software packages provide graphics user interface (GUI) for
the user to work easily.
A major component in GUI is a window.
Multiple windows can be opened at a time.
To activate any one of the window, the user needs just to check on that
window.
Menus and icons are used for fast selection of processing operations.
Icons are used as shortcut to perform functions. Icons take less screen
space. Some other interfaces like text box, buttons, and list are also
used.
GUI commonly used these days to make a software package more interactive. There are multiple
window system, icons, menus, which allows a computer setup to be utilized more efficiently.
12MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

IMAGE REPRESENTATION
Imagerepresentationistheapproximationsofthereal
worlddisplayedinacomputer.
A picture in computer graphics is represented as a
collection of discrete picture elements termed as pixels.
A pixel is the smallest element of picture or object that can
be represented on the screen of a devicelike computer.
13MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

BITMAP AND VECTOR –BASED GRAPHICS
Thereare two typesof computergraphics:
14MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

1.RasterorBitmapgraphics
Abitmapimageusesagridofindividualpixelswhereeach
pixelcanbeadifferentcolororshade.
Bitmapsarecomposedofpixelswhereeachpixelis
separatelydefined(asinadigitalphotograph).Imageswith
highernumbersofpixelshavehigherresolution.
Thejaggedappearanceofbitmapimagescanbepartially
overcomewiththeuseof"anti-aliasing"
Bitmapimagesrequirehigherresolutionsandanti-aliasingfor
asmoothappearance.
Bitmapsarebestusedforphotographsandimageswithsubtle
shading.ForExample-Photoshop,Paint,etc.
15MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

2.Vectorgraphicswheremathematicalformulasareusedto
drawlinesandshapes,whicharetheninterpretedatthe
viewer'sendtoproducethegraphic.
Vector-basedgraphicsontheotherhandaremathematically
describedandappearsmoothatanysizeorresolution.
Graphicsbestsuitedforthevectorformatarepagelayout,type,
lineartorillustrations.
ForExample-CorelDraw,AdobeIllustrator,etc.
16MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

BITMAP/RASTER IMAGE VECTOR IMAGE
17MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

Bitmap graphics:
It is pixel based graphics.
The position and color information about the image
are stored in pixels arranged in grid pattern.
The Image size is determined on the basis of image
resolution.
These images cannot be scaled easily.
Bitmapimagesareusedtorepresentphotorealistic
imageswhichinvolvecomplexcolorvariations
Vector graphics:
The images in vector graphics are basically
mathematically based images.
Vector based images have smooth edges and
therefore used to create curves and shapes.
These images are appropriate for precise illustrations
but not good for photorealistic images
18MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
19

DISPLAYDEVICES
Inagraphicalsystem,videomonitoristheprimaryoutput
deviceandCathodeRayTube(CRT)isthemainelementof
avideomonitor.
There are various types of displays like CRT, LCD and Plasma.
20MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

1.CRT(CathodeRayTube)isoneofthemostlyuseddisplaytechnology.
MostdesktopcomputerdisplaysuseofCRTs.
TheCRTinacomputerdisplayissimilarto“PictureTube”inaTelevision
Receiver.
CRTisaspecializedvacuumtubeinwhichimagesareproducedwhenan
electronbeamstrikesaphosphorscentsurface.
CRTshave3mainelements:anelectrongun,adefectingsystemanda
screen.
InCRT,abeamofelectronsemittedbyanelectrongunstrikesonspecified
positionsonphosphorcoatedscreenafterpassingthroughfocusingand
deflectingsystems.
MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
21

MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
22

WORKING OF CRT
1.Abeamofelectronsorcathoderaysareemittedbyelectron
gun.
2.Throughthefocusinganddeflectingsystems,theelectronbeam
passesandisdirectedtowardsspecifiedpositionsonthe
phosphor-coatedscreen.
3.Whenthebeamhitsthescreen,asmallspotoflightisemitted
ateachpositioncontactedbytheelectronbeam.
4.Thepictureisredrawnbydirectingtheelectronbeambackover
thesamescreen.
MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
23

Types of LCD
MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
24

MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
25

Flat-PanelDevicesarethedevicesthathavelessvolume,weight,
andpowerconsumptioncomparedtoCathodeRayTube(CRT).
DuetotheadvantagesoftheFlat-PanelDisplay,useofCRT
decreased.
AsFlatPanelDevicesarelightinweightsthat’swhytheycanbe
hangonwallsandwearthemonourwristasawatch.
FlatPanelDisplay(FPD)allowuserstoviewdata,graphics,text
andimages.
26MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

27MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

1.EmissiveDisplay:
TheEmissiveDisplayorEmittersarethedevicesthatconvert
electricalenergyintolightenergy.
Examples:PlasmaPanel,LED(LightEmittingDiode),Flat
CRT.
2.Non-EmissiveDisplay:
Non-EmissiveDisplayorNon-Emittersarethedevicesthatuse
opticaleffectstoconvertsunlightorsomeothersourceinto
graphicpatterns.
Examples:LCD(LiquidCrystalDisplay)
28MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

2. LCD Display: Liquid Crystal Display
LCDisthetechnologyusedfordisplaysinnotebooks,laptopsandothersmaller
computers.LCDsallowdisplaystobemuchthinnerthanCRTtechnology.
LiquidCrystalDisplaysarethedevicesthatproduceapicturebypassing
polarizedlightfromthesurroundingsorfromaninternallightsourcethrougha
liquid-crystalmaterialthattransmitsthelight.
LCDusestheliquid-crystalmaterialbetweentwoglassplates;eachplateisthe
rightangletoeachotherbetweenplatesliquidisfilled.
Oneglassplateconsistsofrowsofconductorsarrangedinverticaldirection.
Anotherglassplateisconsistingofarowofconductorsarrangedinhorizontal
direction.
Thepixelpositionisdeterminedbytheintersectionofthevertical&horizontal
conductor.Thispositionisanactivepartofthescreen.
29MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

3. Plasma Displays
Aplasmadisplayisacomputervideodisplayinwhich
eachpixelonthescreenisilluminatedbyatinybitofplasma
orchargedgas,somewhatlikeatinyneonlight.
Plasmadisplaysarethinnerthancathoderaytube(CRT)
displaysandbrighterthanliquidcrystaldisplays(LCD).
Plasmadisplaysaresometimesmarketedas"thin-panel"
displaysandcanbeusedtodisplayeitheranalogvideosignals
ordisplaymodesdigitalcomputerinput.
30MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

31MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

Display Technology
A. Raster Scan Systems
Itisthemostcommontypeofgraphicsmonitorbasedontelevision
technology.
Inarasterscansystem,theelectronbeamissweptacrossthescreen,one
rowatatimefromtoptobottom.
Whenelectronbeammovesacrosseachrowthebeamintensityisturned
ONandOFFtocreateapatternofilluminatedspots.
Picturedefinitionisstoredinamemoryareacalledtherefreshbufferor
framebufferusedforredrawn.Horizontalretrace:Thereturntotheleftof
thescreen,afterrefreshingeachscanline.
Verticalretrace:Attheendofeachframetheelectronbeamreturnstothe
topleftcornerofthescreentobeginthenextframe.
32MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

33MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

34MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

A. Raster Scan Systems
35MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

2.Random-ScanDisplays
TheCRThastheelectronbeamdirectedonlytothepartsofthescreen
whereapictureistobedrawn.
Random-scanmonitorsdrawapictureonelineatatime,calledas
vectordisplay.
Refreshratesonaransom-scansystemdependsonthenumberoflines
tobedisplayed.
Picturedefinitionisstoredasasetofline-drawingcommandsinthe
refreshdisplayfileorrefreshbuffer.
Todisplayaspecifiedpicture,thesystemcyclesthroughthesetof
commandsinthedisplayfile,drawingeachcomponentline.
Thesesystemsaredesignedfortheline-drawingapplicationsandcan’t
displayrealisticshadedscenes.
36MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

Random-Scan Displays
37MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

38MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

39MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
COLORCRTMONITORS
AcolorCRTmonitordisplayscolorpicturebyusinga
combinationofphosphorsthatemitdifferentcoloredlight.
Bycombiningtheemittedlightarangeofcolorscanbe
generated.
Therearebasicmethodsfordisplayingcolordisplays.
1.BeamPenetrationMethod
2.Shadow-MaskMethod

40MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

1.BeamPenetrationMethod
BeamPenetrationMethodisquitesimilartothenormalCRTanditusesonly
oneelectrongun.
TheBeam-Penetrationmethodhasbeenusedwithrandom-scanmonitors.
Inthismethod,theCRTscreeniscoatedwithtwolayersofphosphor,redand
greenandthedisplayedcolordependsonhowfartheelectronbeam
penetratesthephosphorlayers.
Thismethodproducesfourcolorsonly,red,green,orangeandyellow.
Abeamofslowelectronsexcitestheouterredlayeronly;hencescreenshows
redcoloronly.
Abeamofhigh-speedelectronsexcitestheinnergreenlayer.Thusscreenshows
agreencolor.
41MRS. SOWMYA JYOTHI, FACULTY, MANGALORE

Advantages:
Inexpensive
Disadvantages:
Only four colors are possible
Quality of pictures is not as
good as with another method.
MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
42
BeamPenetrationMethod

MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
43
2.ShadowMaskMethod:
ShadowMaskMethodiscommonlyusedinRaster-ScanSystem
becausetheyproduceamuchwiderrangeofcolorsthanthebeam-
penetrationmethod.
Inthisthepixelismadeupofthree-colors.Soduetothreecolorsit
usesthreeelectrongunsoneforproducingeachcolor.Thecolors
arered,greenandblue.Inthistheimportantconsiderationfora
colormonitoristhesettingofelectrongunsandthephosphordots
formingapixel.
ItisusedinthemajorityofcolorTVsetsandmonitors.

Construction:
A shadow mask CRT has 3 phosphor color dots at each pixel position.
One phosphor dot emits: red light
Another emits: green light
Third emits: blue light
This type of CRT has 3 electron guns, one for each color dot and a
shadow mask grid just behind the phosphor coated screen.
Shadow mask grid is pierced with small round holes in a triangular
pattern.
MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
44

Shadow Mask Method :
MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
45

4.DirectViewStorageTube(DVST)resemblesCRTasituseselectrongun
todrawpictureandphosphorcoatedscreentodisplayit.
Thephosphorusedinthisisofhighpersistence.
DVSTdoesnotuserefreshbufferorframebuffertostorepicture
definition.
PicturedefinitionisstoredininsideCRTinformpositivecharged
distribution.BecauseofthisreasonDVSTisknowsasStorageTypeCRT.In
DVSTnorefreshingisrequiredasresultpicturedrawnonDVSTwillbe
seenforseveralminutesbeforefading.
Functionofguns:TwogunsareusedinDVST
Primaryguns:Itisusedtostorethepicturepattern.
FloodgunorSecondarygun:Itisusedtomaintainpicturedisplay.
MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
46

Direct View Storage Tube (DVST)
Advantage:
No refreshing is needed.
High Resolution
Cost is very less
Disadvantage:
Itisnotpossibletoerasethe
selectedpartofapicture.
Itisnotsuitablefordynamic
graphicsapplications.
Ifapartofpictureistomodify,
thentimeisconsumed.
Thesesystemsdonotdisplay
colors.
MRS. SOWMYA JYOTHI, FACULTY, MANGALORE
47