类型为'uint8'的输入参数的未定义函数'extractHOGFeatures' [英] Undefined function 'extractHOGFeatures' for input arguments of type 'uint8'

查看:503
本文介绍了类型为'uint8'的输入参数的未定义函数'extractHOGFeatures'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从MATLAB R2013a中的图像中提取HOG特征。

I am trying to extract HOG features from an image in MATLAB R2013a.

这是我从MATLAB文档网站复制的代码:

This is the code I copied from MATLAB documentation website:

input='1.png';
Z=imread(input);
%Z=rgb2gray(Z);
[featureVector, hogVisualization] = extractHOGFeatures(Z);

我得到的错误是:


未定义函数'extractHOGFeatures'用于类型为'uint8'的输入参数。

Undefined function 'extractHOGFeatures' for input arguments of type 'uint8'.

错误在 hogfeatureextractor (第6行)中
[featureVector,hogVisualization] = extractHOGFeatures(Z);

我认为这是由于计算机视觉工具箱未正确安装,或者可能是我不知道的其他原因。我已经在Ubuntu 14.04下安装了MATLAB。

I think this is due to the computer vision toolbox not installed properly or it might be some other reason that I am not aware of. I have installed MATLAB under Ubuntu 14.04.

我还使用了 ver 来确定我是否拥有计算机视觉工具箱安装并执行以下操作:

I have also used ver to determine if I have the computer vision toolbox installed and I do:

MATLAB Version: 8.1.0.604 (R2013a)
MATLAB License Number: 724504
Operating System: Linux 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64
Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------------------------
MATLAB                                                Version 8.1        (R2013a)
Simulink                                              Version 8.1        (R2013a)
Aerospace Blockset                                    Version 3.11       (R2013a)
Aerospace Toolbox                                     Version 2.11       (R2013a)
Bioinformatics Toolbox                                Version 4.3        (R2013a)
Communications System Toolbox                         Version 5.4        (R2013a)
Computer Vision System Toolbox                        Version 5.2        (R2013a)

因此,我不确定为什么会遇到此错误。有人可以帮我吗?

As such, I'm not sure why I'm experiencing this error. Can someone help me out?

推荐答案

extractHOGFeatures 是在MATLAB R2013b中引入的。当您运行R2013a时,很遗憾,您无权使用此功能。请在此处查看Computer Vision Toolbox的发行说明: http://www.mathworks。 com / help / vision / release-notes.html 并查看R2013b。

extractHOGFeatures was introduced in MATLAB R2013b. As you are running R2013a, you unfortunately do not have access to this function. See the release notes for the Computer Vision Toolbox here: http://www.mathworks.com/help/vision/release-notes.html and look under R2013b.

您有两个选择。一种是升级您的MATLAB版本,使其至少达到R2013b,或者您可以使用第三方工具箱。帕拉格在他对您的评论中推荐了Piotr Dollar的工具箱: https://github.com/pdollar/toolbox

You have two options. One is to upgrade your version of MATLAB so that it's at least R2013b, or you can use a third party toolbox. Parag in his comment to you recommended Piotr Dollar's toolbox: https://github.com/pdollar/toolbox

如果我可以推荐一些东西,请尝试使用VLFeat: http:// www .vlfeat.org 。 VLFeat是一个开放源代码的计算机视觉库,使用C语言以及带有MEX包装器的MATLAB实现。

If I can recommend something, try using VLFeat: http://www.vlfeat.org. VLFeat is an open source computer vision library that is implemented in C, and also MATLAB with MEX wrappers.

有关更多详细信息,请查看VLFeat的HOG教程: http://www.vlfeat.org/overview/hog.html

Check out the HOG tutorial of VLFeat for more details: http://www.vlfeat.org/overview/hog.html.

这篇关于类型为'uint8'的输入参数的未定义函数'extractHOGFeatures'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆