astronomical image processing with visual fortran

33
Astronomical Image Processing with Visual Fortran 黃 黃 黃

Upload: odette

Post on 14-Feb-2016

40 views

Category:

Documents


0 download

DESCRIPTION

Astronomical Image Processing with Visual Fortran. 黃 信 健. Visual Fortran Graphic Control Histogram Equalization Pseudocolouring Sobel Edge Detector Laplacian Edge Detector Hough Transform. Outline. 32-bit RGB color value SETCOLORRGB SETBKCOLORRGB SETPIXELCOLOR SETPIXELSCOLOR. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Astronomical Image Processing  with  Visual Fortran

Astronomical Image Processing

with Visual Fortran

黃 信 健

Page 2: Astronomical Image Processing  with  Visual Fortran

OutlineVisual Fortran Graphic Control Histogram EqualizationPseudocolouringSobel Edge DetectorLaplacian Edge DetectorHough Transform

Page 3: Astronomical Image Processing  with  Visual Fortran

Visual Fortran Graphic Control

32-bit RGB color valueSETCOLORRGBSETBKCOLORRGBSETPIXELCOLORSETPIXELSCOLOR

Page 4: Astronomical Image Processing  with  Visual Fortran

Visual Fortran Graphic Control

LOADIMAGESAVEIMAGEINTEGERTORGB RGBTOINTEGER

Page 5: Astronomical Image Processing  with  Visual Fortran

Image Enhancing TechniquesIMSL 2D Fourier Transform

Histogram EqualizationGray scaleFull colorRGBTOHSIHSITORGB

Page 6: Astronomical Image Processing  with  Visual Fortran

7.1 Visual Fortran Graphic Control

Page 7: Astronomical Image Processing  with  Visual Fortran

32-bit RGB color value

alpha channelbinary 1111111 = hex FF#0000FF : full-intensity red, #00FF00 : full-intensity green, #FF0000 : full-intensity blue, #FFFFFF : ?

Page 8: Astronomical Image Processing  with  Visual Fortran

setcolorRGB

Page 9: Astronomical Image Processing  with  Visual Fortran

setcolorRGB.F90

Page 10: Astronomical Image Processing  with  Visual Fortran

setBKcolorRGB

Page 11: Astronomical Image Processing  with  Visual Fortran

setBKcolorRGB.F90

Page 12: Astronomical Image Processing  with  Visual Fortran

SETPIXELCOLOR

Page 13: Astronomical Image Processing  with  Visual Fortran

SETPIXELCOLOR.F90

Page 14: Astronomical Image Processing  with  Visual Fortran

SETPIXELSCOLOR

Page 15: Astronomical Image Processing  with  Visual Fortran

SETPIXELSCOLOR.F90

Page 16: Astronomical Image Processing  with  Visual Fortran

7.1.2 Image2010

Page 17: Astronomical Image Processing  with  Visual Fortran

Image2010 LOADIMAGE

result = SAVEIMAGE (filename, ulxcoord, ulycoord, lrxcoord, lrycoord)

Put LOADIMAGE and SAVEIMAGE together

Page 18: Astronomical Image Processing  with  Visual Fortran

Image2010 CALL INTEGERTORGB (rgb, red,

green, blue) result = RGBTOINTEGER (red,

green, blue)Put INTEGERTORGB and

RGBTOINTEGER together

Page 20: Astronomical Image Processing  with  Visual Fortran

7.2 Histogram Equalization

Page 21: Astronomical Image Processing  with  Visual Fortran

7.3 Edge Detection Algoritms7.3.1 Prewittt Masks

Page 23: Astronomical Image Processing  with  Visual Fortran

Extreme and zero crossing

Page 24: Astronomical Image Processing  with  Visual Fortran

7.3.3 Laplacian Edge Detector

3 x 3 mask for 4-neighborhoods and 8-neighborhood

Page 25: Astronomical Image Processing  with  Visual Fortran

7.3.4 Hough Transform

①Generalized Hough transform②Classical Hough transform

features specified in some parametric forms

tolerant of gaps relatively unaffected by image

noise

Page 26: Astronomical Image Processing  with  Visual Fortran

Straight line searching An N3 operation! Representation in parameter spacey = ax +b

Page 27: Astronomical Image Processing  with  Visual Fortran

Polar representation

y = ax +b xcosθ + ysinθ = r

Page 28: Astronomical Image Processing  with  Visual Fortran

Applications

Driver drowsiness

Page 29: Astronomical Image Processing  with  Visual Fortran

2D Fourier Forward Transform

Page 30: Astronomical Image Processing  with  Visual Fortran

Backward (Inverse) Transform

Page 31: Astronomical Image Processing  with  Visual Fortran

4.2 2D Fourier Transform

Page 33: Astronomical Image Processing  with  Visual Fortran

The EndNext: sequential and parallel

laplace solvers