Presentation is loading. Please wait.

Presentation is loading. Please wait.

CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©

Similar presentations


Presentation on theme: "CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©"— Presentation transcript:

1 CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©

2 Image Visualization

3 Outline 9.1. Image Data Representation 9.2. Image Processing and Visualization 9.3. Basic Imaging Algorithms Contrast Enhancement Histogram Equalization Gaussian Smoothing Edge Detection 9.4. Shape Representation and Analysis Segmentation Connected Components Morphological Operations Distance Transforms Skeletonization

4 Image Data Representation An image is a two-dimensional array, or matrix of pixels, e.g., bitmaps, pixmaps, RGB images A pixel is square-shaped A pixel has a constant value over the entire pixel surface The value is typically encoded in 8 bits integer What is an image?

5 Image Processing and Visualization Image processing may follow every step of the visualization pipeline

6 Visualization Pipeline float data[N_x,N_y] Class Quad Continuous data Discrete dataset Geometric object Displayed image Data Acquisition Data Mapping Rendering

7 Basic Image Processing Image enhancement operation is to apply a transfer function on the pixel luminance values Transfer function is usually based on image histogram analysis High-slope function enhance image contrast Low-slope function attenuate the contrast.

8 Basic Image Processing Linear TransferNon-linear Transfer

9 Luminance Normalization Normalize the image with effective luminance range [I min, I max ]

10 Histogram Equalization All luminance values covers the same number of pixels Histogram equalization method is to compute a transfer function such as the resulted image has a near-constant histogram

11 Histogram Equalization Original ImageAfter equalization

12 (continued) Image Visualization Chap. 9 Nov. 13, 2008

13 Smoothing Noise image After filtering

14 Smoothing Noise can be described as rapid variation of high amplitude Or regions where high-order derivatives of f have large values Noise is usually the high frequency components in the Fourier series expansion of the input signal How to remove noise?

15 Fourier Series For any continuous function f(x) with period T (or x=[0,T]), the Fourier series expansion are: The higher the order n or the frequency, the smaller the amplitudes a n and b n

16 Fourier Series http://en.wikipedia.org/wiki/Fourier_series

17 Fourier Series

18 Fourier Transform

19

20 Frequency Filtering 1.Computer the Fourier transform F(w x,w y ) of f(x,y) 2.Multiple F by the transfer function Φ to obtain a new function G, e.g., high frequency components are removed or attenuated. 3.Compute the inverse Fourier transform G -1 to get the filtered version of f

21 Frequency Filtering Frequency filter function Φ can be classified into three different types: 1.Low-pass filter: increasingly damp frequencies above some maximum w max 2.High-pass filter: increasingly damp frequencies below some minimal w min 3.Band-pass filter: damp frequencies with some band [w min,w max ] To remove noise, low-pass filter is used

22 Gaussian smoothing The most-used low-pass filter is the Gaussian function

23 Convolution Theorem Frequency filtering is equivalent to the convolution with a filter function g(x)

24 Edge Detection Original ImageEdge Detection

25 Edges are curves that separate image regions of different luminance Edges are locations that have high gradient

26 Edge Detection Edges detection using derivatives

27 Edge Detection Operators Roberts Operator Sobel Operator: good on noise Laplacian-based operator: good on producing thin edge

28 Shape Representation and Analysis Shape Analysis Pipeline

29 Shape is defined a compact subset of a given image Shape is characterized by a boundary and an interior Shape properties include geometry (form, aspect ratio, roundness, or squareness) Topology (genus, number) Texture (luminance, shading) Filtering high-volume, low level datasets into low volume dataset containing high amounts of information Shape Representation and Analysis

30 Segment or classify the image pixels into those belonging to the shape of interest, called foreground pixels, and the remainder, also called background pixels. Segmentation results in a binary image Segmentation is related to the operation of selection, i.e., thresholding Segmentation

31 Find soft tissueFind hard tissue

32 Connected Components Find non-local properties Algorithm: start from a given foreground pixels, find all foreground pixels that are directly or indirectly neighbored

33 (continued) Image Visualization Chap. 9 Nov. 18, 2008

34 To close holes and remove islands in segmented images a: original image b: segmentation c: close holes d: remove island Morphological Operations

35 Dilation: translate a structuring element (e.g., disc, square) over each foreground pixel of the segmented image Dilation thickens thin foreground regions, and fill holes and close background gaps that have a size smaller than the structuring element R Erosion: the opposite operation of dilation. Erosion is to thin the foreground components, remove island smaller than the structuring element R Morphological Operations

36 Morphological closing: dilation followed by an erosion Morphological opening: erosion followed by a dilation operation Morphological Operations

37 Distance Transform

38 The distance transform DT of a binary image I is a scalar field that contains, at every pixel of I, the minimal distance to the boundary ∂ Ωof the foreground of I Distance Transfer Signed transform can be made if the object boundary is closed Positive distance: outside the boundary Negative distance: inside the boundary

39 Distance transform can be used for morphological operation Consider a contour line C(δ) of DT Distance Transfer δ = 0 … δ > 0 … δ < 0 …

40 The contour lines of DT are also called level sets Distance Transfer ShapeLevel SetsElevation plot

41 Find the closest boundary points, so called feature points Feature Transform Given a: Feature point is b Given p: Feature points are q 1 and q 2

42 Skeletonization

43 Skeletons are the medial axes Or skeleton S( Ω) was the set of points that are centers of maximally inscribed disks in Ω Or skeletons are the set of points situated at equal distance from at least two boundary points of the given shape Skeletonization

44

45 Feature Transform Method: Select those points whose feature transform contains more than two boundary points. Skeleton Computation Works well on continuous data Fails on discreate data

46 Using distance field singularities: Skeleton points are local maxima of distance transform Skeleton Computation

47 Using boundary collapse metric: Compute one-point feature transform Identify the skeleton points Continue “shrink” the object until it end Skeleton Computation

48 End of Chap. 9 Note: covered all sections except 9.4.7 (skeleton in 3D)


Download ppt "CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©"

Similar presentations


Ads by Google