What is this error I get?

1 回表示 (過去 30 日間)
Stelios Fanourakis
Stelios Fanourakis 2019 年 1 月 30 日
コメント済み: Stelios Fanourakis 2019 年 1 月 30 日
Hi
I am using an evolution Local Gaussian Distribution active contour for automated segmentation and I get this error:
Subscript indices must either be real positive integers or logicals.
Error in evolution_LGD>NeumannBound (line 56)
g([1 nrow],[1 ncol]) = g([3 nrow-2],[3 ncol-2]);
Error in evolution_LGD (line 19)
u=NeumannBound(u);
Error in ruller>LGD (line 234)
phi =evolution_LGD(Img,phi,epsilon,Ksigma,KONE,KI,KI2,mu,nu,lambda1,lambda2,timestep,alf);
Error in ruller (line 124)
LGD()
>>
Can someone explain me please, what this error means? What is the wrong?
Thank you

回答 (1 件)

Kevin Phung
Kevin Phung 2019 年 1 月 30 日
do you mean to do
g(1:nrow,1:ncol) = g(3:nrow-2,3:ncol-2);
  1 件のコメント
Stelios Fanourakis
Stelios Fanourakis 2019 年 1 月 30 日
I don't think it is that error, since, it is already there from the original function. And I know that it works.
The problem must lie where the ruller.m is since this is my code I am trying to develop.
I still cannot understand the root of the trouble

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by