Mapping of a fraction -windowing transformations, Computer Graphics

Mapping of a Fraction -Windowing Transformations

The mapping of a fraction of a world coordinate scene to device coordinates is considered to as Viewing Transformation. In common 2Dimentional viewing transformations are considered to as window to windowing transformation or viewport transformation.

1736_Mapping of a Fraction -Windowing Transformations 1.png

Figure: Windowing Transformation

We can see in above figure, here all parts of the picture which lie outside the window are clipped and the contents that lie within the widow are transferred to device coordinates. Secondly, we can also observe that while window chooses a part of the scene, viewport displays the chosen part at the desired location on the display region. While window is changed we see a dissimilar part of the scene at similar portion as viewport on display. If we modify the viewport only, we notice identical part of the scene drawn at a diverse scale or at a diverse place on the display. By successively decreasing or raising the size of the window around a part of the scene the viewport kept fixed, we can determine the effect of zoom out or in respectively on the displayed part. By mathematically, viewing transformation can be represented as V=W.N

Here,

  • V refers Viewing transformation that maps a part of world coordinate scene to device coordinates;
  • W refers to workstation transformation that maps normalized device coordinates to physical device coordinates;
  • N refers to Normalization transformation utilized to map world coordinates to normalized device coordinates.

 

Window to Viewpoint Coordinates transformation:

159_Mapping of a Fraction -Windowing Transformations 2.png

Figure: Window to Viewport Transformation

Figure as shown in above, demonstrates window-viewpoint mapping. Now, it is depicted here a point at position (Xw, Yw) in window is mapped on position (Xv, Yv) in the connected viewpoint.

Consequently, as to keep the same relative placement in the viewpoint like in the window we need:

   (xv - xvmin)/( xvmax  - xvmin)        =(xw - xwmin)/(xwmax  - xwmin)..............1(a)

   (yv - yvmin)/ (yvmax  - yvmin)       = (yw - ywmin)/(ywmax  - ywmin)................1(b)

Again arranging equation (a) and (b) of (1) we denote viewpoint position (xv, yv) which is:

{ xv = xvmin + (xw - xwmin) Sx

yv = yvmin + (yw - ywmin) Sy }..........................(2)

Here,

Sx scaling factor along x axis = (xvmax  - xvmin)/(xwmax  - xwmin)

Sy scaling factor along y axis = (yvmax  - yvmin)/(ywmax  - ywmin).........................................(3)

Note: if Sx = Sy then the relative proportions of objects are preserved else the world object will be contracted or stretched in either x or y direction while displayed on output device.

Posted Date: 4/3/2013 3:57:05 AM | Location : United States







Related Discussions:- Mapping of a fraction -windowing transformations, Assignment Help, Ask Question on Mapping of a fraction -windowing transformations, Get Answer, Expert's Help, Mapping of a fraction -windowing transformations Discussions

Write discussion on Mapping of a fraction -windowing transformations
Your posts are moderated
Related Questions
An 8x8 image f[i,j] has gray levels given by the following equation: f [i , j]= ? i-j ? ; i,j=0,1,2,3,4,5,6,7. a. Calculate the gray level value for all the pixels in the 8x8

Sequence of Steps to Generate a Full Animation The sequence of steps to generate a full animation would be as given below: 1)  Improve a script or story for the animation.

Line Drawing Display - Random Scan Display Device The display through this system is termed as Line Drawing Display. The sequence controls the subsequent stages, demonstrated

1. How does the resolution of a system influence graphic display? Ans. In a high resolution system the adjacent pixels are so near spaced such approximated line-pixels lie extr

Summary of Graphic Primitives In this all section, we have illustrated the basic graphic primitives that are line, point and circle; we have also illustrated both practical an

Question: (a) Sound often gives the only effective way to convey an idea, elicit an emotion, or dramatise a point. Explain two situations of the use of sound that would be con

Transformation for 3-D Scaling As we already seen that the scaling process is mainly utilized to change the size of an object. The scale factors find out whether the scaling i

Computer Animation Tools  To create various types of animation discussed above, we want to have particular software and hardware as well. Here, the fundamental constraint is re

Advantages of JPEG Images Huge compression ratios mean sooner download speeds. JPEG produces outstanding results for main photographs and complicated images. JPEG s

Algorithm (scan-line): For each scan line perform from step (1) to (3). 1) For all pixels on a scan-line, arrange depth [x]=1.0 i.e. max value and Intensity [x] = background