我是靠谱客的博主 聪慧心情,这篇文章主要介绍matlab中函数或变量x无法识别,matlab - 无法识别的函数或变量“ f”错误 - 堆栈内存溢出...,现在分享给大家,希望可以做个参考。

我是Matlab的新手,我想在不使用Matlab内置函数的情况下实现霍夫变换; 因此,我正在学习这样做的可能方法。 我发现在一本书中写的一个函数似乎是正确的。 我遇到错误,无法解决。

我想实现霍夫变换功能,然后将其应用于灰度图像

% This functions makes use of sparse matrices

function [h, theta, rho] = HT(f, dtheta, drho)

% [H, THETA, RHO] = HOUGH(F, DTHETA, DRHO) computes the hough

% transform of the image F. DTHETA specifies the spacing (in degrees) of

% the the hough transform bins along the theta axis.

% DRHO specifies the spacing of the hough transform bins along the rho

% axis. H is the Hough transform matrix. It is NRHO-by-NTHETA, where

% NRHO = 2*ceil(norm(size(F))/DRHO) - 1, and NTHETA = 2*ceil(90/DTHETA).

if nargin < 3

drho = 1;

end

if nargin < 2

dtheta = 1;

end

f = double(f);

[M,N] = size(f);

theta = linspace(-90, 0, ce

最后

以上就是聪慧心情最近收集整理的关于matlab中函数或变量x无法识别,matlab - 无法识别的函数或变量“ f”错误 - 堆栈内存溢出...的全部内容,更多相关matlab中函数或变量x无法识别,matlab内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(78)

评论列表共有 0 条评论

立即
投稿
返回
顶部