SLIDE 1
AAOGlimpse Fun with OpenGL and FITS Keith Shortridge, Australian - - PowerPoint PPT Presentation
AAOGlimpse Fun with OpenGL and FITS Keith Shortridge, Australian - - PowerPoint PPT Presentation
AAOGlimpse Fun with OpenGL and FITS Keith Shortridge, Australian Astronomical Observatory glVertex3f (x,y,z); AAOGlimpse is a FITS image display program with a small difference. Heres the basic idea.... glVertex3f (x,y,z); glVertex3f
SLIDE 2
SLIDE 3
glVertex3f (x,y,z);
SLIDE 4
glVertex3f (x,y,z); glColor3f (r,g,b);
SLIDE 5
SLIDE 6
SLIDE 7
SLIDE 8
SLIDE 9
SLIDE 10
SLIDE 11
SLIDE 12
SLIDE 13
SLIDE 14
SLIDE 15
glVertex3f (x,y,z);
Formal Definition of Functional Requirements
World Coordinate System (WCS) support Support for 3D data
SLIDE 16
glVertex3f (x,y,z);
WCS
Uses Mark Calabretta’s wcslib Each data pixel has X,Y,Z WCS coordinates, and these are used to draw its surface in coordinate space. (Can use a lot of memory.) In OpenGL you draw the surfaces in the coordinate space you
- choose. (You don’t have to think about the screen at all.)
Then how you view it is something completely separate.
SLIDE 17
SLIDE 18
SLIDE 19
SLIDE 20
SLIDE 21
SLIDE 22
SLIDE 23
SLIDE 24
glVertex3f (x,y,z);
3D Data
Each plane of the data is its own 3D surface, and you have a lot of these 3D surfaces.
SLIDE 25
SLIDE 26
SLIDE 27
SLIDE 28
SLIDE 29
glVertex3f (x,y,z);
More Functional Requirements
Analysis of optical test data – our optical engineers wanted to fit ellipses to out‐of‐focus test images.
SLIDE 30
SLIDE 31
glVertex3f (x,y,z);
Optical Test Data Functional Requirements
Ellipse fitting ‐ Interactive and Automatic JPEG input
SLIDE 32
Automatic fitting using ‘plug‐out’ utility programs.
SLIDE 33
Interactive fitting using the cursor.
SLIDE 34
SLIDE 35
glVertex3f (x,y,z);
A bit of fun with JPEGs
Read in using libjpeg. Surface height depends on sum of all R,G,B colour values. Surface colour is the R,G,B colour for each pixel.
SLIDE 36
SLIDE 37
SLIDE 38
SLIDE 39
glVertex3f (x,y,z);
Current Status
Available for download as an OS X executable. http://www.aao.gov.au/local/www/ks/AAODisp.html (or Google AAOGlimpse) ~8200 system‐independent lines of C++ ~850 OS X dependent lines of Objective‐C++ (OS X user interface) Source will be made available (following a little housekeeping). Port to Linux or Windows should be straightforward – needs some effort.
SLIDE 40
SLIDE 41
glVertex3f (x,y,z);
SLIDE 42
AAOGlimpse – Fun with OpenGL and FITS
Keith Shortridge, Australian Astronomical Observatory
SLIDE 43
AAOGlimpse is a FITS image display program – with a small difference. Here’s the basic idea....
SLIDE 44
Formal Definition of Functional Requirements
World Coordinate System (WCS) support Support for 3D data
SLIDE 45
WCS
Uses Mark Calabretta’s wcslib Each data pixel has X,Y,Z WCS coordinates, and these are used to draw its surface in coordinate space. (Can use a lot of memory.) In OpenGL you draw the surfaces in the coordinate space you
- choose. (You don’t have to think about the screen at all.)
Then how you view it is something completely separate.
SLIDE 46