文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 工程科技 > 信息与通信 > Design and Implementation of DSP and FPGA-Based Robust
侵权投诉

Design and Implementation of DSP and FPGA-Based Robust

applied to the image in Fig. 1 with the resulting image shown

Design and Implementation of DSP and FPGA-Based Robust

in Fig. 2.

to configure the frame rate, gain control, exposure time, and integration time of the camera.

M2: The frame grabber module acquires the pixels at a rate of

10 Mbytes/s from the camera. The image data can be directly passed to the next module.

M3: This module consists of two parallel operations that

realize Sobel edge detection using the horizontal and

Fig. 2. Edge detection using Sobel masks for the image in Fig. 1. vertical mask operations (Equations (2) and (3)) to

obtain the derivatives. Vertical and horizontal pixel B. Thresholding

counters are used to position the masks.

Thresholding is a simple and efficient method applied to M: The sum of the absolute values of image derivatives is

4

gray-level intensity images to differentiate between objects calculated to obtain the magnitude of the image gradient. and the background in the image. Thresholding converts a The circuit synthesis requires an adder in this stage. gray-level image into a binary image that contains all of the M: This module applies thresholding (Equation (4)) to the

5

essential information concerning the shape, position, and output image of the edge detection stage.

number of objects. Since we are interested in the lighter M: The centroid of the marker (Equation (5) and (6)) is

6

marker and the background is uniformly darker, global calculated in this stage. The circuit synthesis requires thresholding is used. The thresholding process is given by two multipliers, three adders, two dividers, and three

Design and Implementation of DSP and FPGA-Based Robust

Design and Implementation of DSP and FPGA-Based Robust

Design and Implementation of DSP and FPGA-Based Robust

255iff(x,y)T

fT(x,y) (4)

iff(x,y) T 0

where T is the threshold value. Applying thresholding with a threshold value T 150 to the image of Fig. 2 produces the

Design and Implementation of DSP and FPGA-Based Robust

image in Fig. 3.

Fig. 3. Thresholding applied to the image in Fig. 2.

Design and Implementation of DSP and FPGA-Based Robust

C. Centroid and Displacement Determination

Ideally, the thresholding operation separates the edge of the marker from the background and the pendulum rod of the scene. As shown in Fig. 3, the white pixels correspond to the edge of the marker. Because the marker is symmetrical, the centroid of the edge is taken as its location. The centroid (xc,yc) is given by

x f

xc

x

y

T

(x,y)

x

y

x

y

fT(x,y)

T

y f

yc

x

y

Consider the basic features of the rotary inverted pendulum , (6)

system shown in Fig. 5. fT(x,y)

(x,y)

, (5)

IV. MODELING OF THE ROTARY INVERTED PENDULUM

SYSTEM

where fT(x,y) represents the binary level of the pixel at point (x,y) in the image coordinate system.

III. IMPLEMENTATION OF IMAGE PROCESSING ALGORITHMS

ON AN FPGA

2,l2,c2

In order to process the image data in real-time, the image

processing algorithms introduced in the previous section are

Fig. 5. Rotary inverted pendulum system.

implemented on an FPGA using the hardware description

The variables and parameters of the system are defined as

language VHDL. In this study, the image processing is

follows:

divided into the modules shown in Fig. 4.

m1 : Mass of the rotating arm (kg)

The functions of the modules are:

M1: The Inter-Integrated Circuit (I2C) serial interface is used m2 : Mass of the pendulum (kg)

上一页第3页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email