UCF 大牛 Prof. Shah 课题组代码合集

本博客提供了计算机视觉领域的专业资源与工具,包括背景建模、形状从阴影、法线矩阵、均值移位算法、内核密度估计、K均值算法、归一化切割等,覆盖了从基础知识到高级应用的多个方面。

Prof. Shah 是计算机视觉的大牛,尤其是视频中的行为识别,做的很不错,Jingen Liu就是他的学生。

Source Code

[Background Modeling]

[Shape from Shading]

[Fundamental Matrix]

[Mean-Shift Algorithms]

[Kernel Density Estimation]

[K-Means Algorithm]

[Normalized Graph Cut]

[Dimension Reduction]

[Facial Analysis]

[Optical Flow]

[Image Registration]

[Color Space Transformations]

[Image Acquisition]

[Miscellaneous]

[SPREF]

[FRAISE]

[Useful Links]

 

Background Modeling

This code performs background modeling and foreground estimation in dynamic scenes captured by static cameras. The algorithm implemented has three innovations over existing approaches. First, the correlation in intensities of spatially proximal pixels is exploited by using a nonparametric density estimation method over a joint domain-range representation of image pixels, multimodal spatial uncertainties and complex dependencies between the domain (location) and range (color). The model of the background is implemented as a single probability density, as opposed to individual, independent, pixel-wise distributions.

Second, temporal persistence is used as a detection criterion. Unlike previous approaches to object detection which detect objects by building adaptive models of the background, the foreground is modeled to augment the detection of objects (without explicit tracking) since objects detected in the preceding frame contain substantial evidence for detection in the current frame.

Finally, the background and foreground models are used competitively in a MAP-MRF decision framework, stressing spatial context as a condition of detecting interesting objects and the posterior function is maximized efficiently by finding the minimum cut of a capacitated graph. This method is useful for moving object detection in scenes containing dynamic backgrounds, e.g., fountains, fans, and moving trees, etc. The entry point for background modeling is Main.m.

Project Page: http://server.cs.ucf.edu/~vision/projects/backgroundsub.htm

Yaser Sheikh and Mubarak Shah, Bayesian Modelling of Dyanmic Scenes for Object Detection, IEEE Transactions on PAMI, Vol. 27, Issue 11 (Nov 2005), pp. 1778-1792.



Shape from Shading
 

Code form the following publication:

Ruo Zhang,Ping-Sing Tsai, James Cryer and Mubarak Shah, Shape from Shading: A Survey', IEEE Transactions on PAMI, Volume 21, Number 08, August, 1999, pp 690-706

Source code for the Cryer-Tsai-Shah method for combining shape from shading and stereo depth maps.

Related Publication:  James Cryer, Ping-Sing Tsai and Mubarak Shah. Shape from Shading and Stereo, Pattern Recognition, Volume 28, No. 7, pp 1033-1043, Jul 1995.

Tsai-Shah Method (C code) 

Source code for the Tsai-Shah method for shape from shading.

Related Publication: Ping-sing Tsai and Mubarak Shah, Shape From Shading Using Linear Approximation, Technical Report, 1992. 

  Fundamental Matrix

Computes the fundamental matrix from 8 or more matching points in a stereo pair of images using the normalized 8 point algorithm. The normalized 8 point algorithm given by Hartley and Zisserman is used. To achieve accurate results it is recommended that 12 or more points are used. The code uses the normalise2dpts.m file also provided.

On directions to using the code please refer to the code documentation.

Acknowledgements: The code was provided by Peter Kovesi. http://www.csse.uwa.edu.au/~pk/Research/MatlabFns/

Please note that the code requires OpenCV version 1.0 (April Edition) to be installed on the target system. The package includes sample stereo images together with the correspondence points.

Acknowledgements: The code was provided by Paul Smith. http://www.cs.ucf.edu/~rps43158/index.php

 

 
Mean-Shift Algorithms

The EDISON system contains the image segmentation/edge preserving filtering algorithm described in the paper Mean shift: A robust approach toward feature space analysis and the edge detection algorithm described in the paper Edge detection with embedded confidence. There is also Matlab interface for the EDISON system at the below link.

Acknowledgements: The source code is also available from Rutgers: http://www.caip.rutgers.edu/riul/research/robust.html
 

For instructions on using the code please refer to the readme.txt file included in the zip package. Note the code requires OpenCV to be installed on the target system.

Acknowledgements: The code was provided by Alper Yilmaz. http://www.cs.ucf.edu/~yilmaz/

 
Kernel Density Estimation

The KDE class is a general matlab class for k-dimensional kernel density estimation. It is written in a mix of matlab ".m" files and MEX/C++ code. Thus, to use it you will need to be able to compile C++ code for Matlab. The kernels supported are Gaussian, Epanetchnikov and Laplacian. There is a detailed instruction about how to use it at http://www.ics.uci.edu/~ihler/code/kde.html

 
K-Means Algorithms for Data Clustering
K-Means in Statistics Toolbox (Matlab code)

The goodness of this code is that it provides the options, such as 'distance measure', 'emptyaction', and 'onlinephase'. It is quit slow when dealing with large datasets and sometimes memory will be overflow.

 

This code uses the JIT acceleration in Matlab, so it is much faster than k-means in the Statistics Toolbox. It is very simple and easy to read.

          Acknowledgements: The code was provided by Yi Cao.
                                          You can also find it at http://www.mathworks.com/matlabcentral/fileexchange/19344-efficient-k-means-clustering-using-jit

 

This code calls the c code of k-means. It is the fastest one among these three and can deal with large dimensional matrix.

          Acknowledgements: The code was provided by Mark Everingham. http://www.comp.leeds.ac.uk/me

 

Normalized Cuts

You can find the code for data clustering and image segmentation at  http://www.cis.upenn.edu/~jshi/software/, wich was provided by Jianbo Shi.

  Dimension Reduction
 
  Facial Analysis

For instructions on using the code please refer to the readme.txt file included in the zip package. Note the code requires OpenCV  and fltk (an open source window toolkit) to be installed on the target system.

Acknowledgements: The code was provided by Paul Smith. http://www.cs.ucf.edu/~rps43158/index.php

 

Optical Flow

 

This code includes the basic Lucas Kanade algorithm and Hierarchical LK using pyramids. Please refer to the 'readme' file included in the package for help on using the code. Following is a test sample to demonstrate the use of this code to calculate the optical flow. 
 

Acknowledgements: The code was written by Sohaib Khan. http://www.cs.ucf.edu/~khan/

 

Code from Piotr Dollar (matlab)

It provides three methods to calculate optical flow: Lucas Kanade, Horn&Schunck and cross-correlation. 
 

Acknowledgements: The code was written by Piotr Dollar. http://vision.ucsd.edu/~pdollar/toolbox/doc/index.html

Brox and Sand Methods (matlab)

 

This code implements a variation of the paper "High accuracy optical flow using a theory for warping", presented at ECCV 2004. Details of implementation, especially the numerics, have been adapted from the PhD thesis of Dr. Thomas Brox. Extension to different color channels, and the concept of a local smoothing function, has been adopted from the PhD thesis of Dr. Peter Sand. 
 

Acknowledgements: The code was written by Visesh Uday Kumar Chari . http://perception.inrialpes.fr/~chari/myweb/Software/

Image Registration

Registration (matlab)

Please refer to the 'readme' file included in the package for help on using the code. Following is a test sample to demonstrate the use of this code for image registration.
 

Acknowledgements: The code for image registration along with test samples is provided by Yaser Sheikh. http://www.cs.ucf.edu/~yaser/

 

Color Space Transformations

 

Image Acquisition

VFM performs frame grabbing from any Video for Windows source. On directions to using the code please refer to the code documentation. Acknowledgements: The code was written by Farzad Pezeshkpour, School of Information Systems, University of East Anglia.

 

Miscellaneous

Interactive java demo of Williams-Shah snakes algorithm. Code written by Sebastian van Delden

Code for the greedy snake algorithm.

DirectShow tutorial.

This MATLAB code is meant for research purposes only.

There have been various changes made to the code since the initial publication.  Some subtle, some not so subtle.  The most significant change is the use of a tessellation method to calculate the orientation bins.  Our testing has shown improved results; however, currently rotational invariance has not been re-implemented.  Rotational invariance is useful in certain applications, however it is useless in others, for this reason we have focused our time elsewhere.  Another noteable change is the elimination of some points due to lack of descriptive information (multiple gradient orientations).  This is a change which has a flag, and can therefore be turned on or off, however I suggest leaving it on and writing your frontend in such a way that allows 3DSIFT to refuse points, as this too has proven very effective in our testing.

Please see the README file for more detailed and up-to-date information.

Code form the following publication:

Paul Scovanner, Saad Ali, and Mubarak Shah, A 3-Dimensional SIFT Descriptor and its Application to Action Recognition, ACM MM 2007.

 

SPREF

SPREF Code (Matlab)         

SPatiotemporal REgularity Flow (SPREF) is a new spatiotemporal feature that represents the directions in which a video or an image is regular, i.e., the pixel appearances change the least. It has several application, such as video inpainting and video compression. For more detail, please refer to our project page SPREF section.

 

FRAISE

FRAISE Code (C/C++) 

Fast Registration of Aerial Image SEquences (FRAISE) is a lightweight OpenCV based software system written in C/C++ to register a sequence of aerial images in near-realtime. A demo test video video sequence and an image sequence with corresponding FRAISE alignment are included.

Acknowledgements: The code was written by Subhabrata Bhattacharya. http://www.cs.ucf.edu/~subh/



http://blog.sciencenet.cn/blog-722391-609357.html
<think>嗯,用户遇到了一个关于"ERROR: you must set the property 'Target UCF File Name'"的错误提示。让我思考一下这个问题的背景和可能的解决方案。 这个错误看起来与FPGA开发工具有关,可能是Xilinx ISE或类似的工具链。UCF代表用户约束文件(User Constraints File),包含设计中的时序和物理约束。错误提示明确指出需要设置目标UCF文件的属性,说明工具在配置阶段缺少这个必要信息。 用户提供的引用材料虽然不直接相关,但提到了构建错误和配置问题,这提醒我应该关注配置文件的设置。对于FPGA开发流程,通常需要在项目设置中指定约束文件。 解决这个问题可能有几个途径:首先检查项目属性中是否配置了UCF文件路径,这通常在项目设置或实现属性中完成;其次验证文件是否实际存在于指定位置;最后确认文件名格式是否正确,不应包含特殊字符或空格。 考虑到用户可能不熟悉开发环境,我应该提供详细的分步说明,比如如何在Xilinx ISE中找到属性设置对话框。另外还需要提醒常见的注意事项,例如文件路径长度限制或权限问题。 用户可能真正需要的是明确的操作指引,而不仅仅是错误解释。因此回复应该侧重于可执行的解决方案,从最简单的检查开始,逐步深入到更复杂的配置修改。同时要注意避免过于技术化的术语,用用户能理解的语言解释操作步骤。 这个错误很基础但很关键,解决后用户才能继续后续的实现步骤。如果配置正确,通常能立即解决问题。不过也要考虑到可能存在工具版本兼容性或项目文件损坏等特殊情况,可以建议在基础方案无效时的进阶排查步骤。 </think>要解决'**ERROR: you must set the property 'Target UCF File Name'**'错误,通常与FPGA设计工具(如Xilinx ISE/Vivado)中缺失用户约束文件配置有关。以下是详细解决步骤: ### 🔧 解决方案 #### 1️⃣ **指定UCF文件路径(Xilinx ISE示例)** 1. 在ISE中右键点击项目名 → 选择 **`Properties`** 2. 左侧导航至:**`Implementation Properties`** → **`Synthesis Options`**(或 **`Translate Properties`**) 3. 在 **`User Constraints File`** 字段中: - 点击右侧 **`...`** 按钮 - 手动选择您的 `.ucf` 文件(如 `my_design.ucf`) - ✅ 确认路径无空格或中文符号 ```plaintext 示例路径: C:/FPGA_Projects/constraints/io_constraints.ucf ``` #### 2️⃣ **命令行模式(Batch Script)** 若使用脚本编译,需显式添加约束文件参数: ```bash xtclsh my_script.tcl -ucf "path/to/constraints.ucf" # Vivado 等效命令 vivado -mode batch -source run.tcl -tclargs -ucf_file "constraints.xdc" ``` #### 3️⃣ **检查文件完整性** - 🔍 验证UCF文件是否存在于项目中(项目目录应可见) - 🚫 检查文件名是否包含特殊字符(建议仅用字母/数字/下划线) - 📂 若文件丢失,需重新创建: 1. 右键点击项目 → **`New Source`** 2. 选择 **`Implementation Constraints File`** 3. 命名文件并添加约束语句(如 `NET "clk" LOC = "P126";`) ### ️ 常见陷阱排查 | 问题类型 | 解决方法 | |-------------------|----------------------------| | 文件未加入项目 | 右键.ucf文件 → **`Add to Project`** | | 多约束文件冲突 | 保留唯一活动的UCF文件 | | 旧版本工具路径限制 | 路径长度≤260字符,避免空格 | | 权限问题 | 检查文件是否被其他进程锁定 | > 📌 **关键提示**:在Vivado中,UCF已被XDC文件替代。若迁移旧项目,需通过 **`Tools -> Upgrade Design`** 转换约束格式[^1]。现代工程通常需在 **`Constraints Manager`** 中设置目标文件[^2]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值