i am facing this error.

8 ビュー (過去 30 日間)
Masood Alam
Masood Alam 2018 年 3 月 4 日
コメント済み: Masood Alam 2018 年 3 月 4 日
Attempted to access voxels(:,4); index out of bounds because size(voxels)=[753571,3].
Error in CreateVisualHull (line 12)
voxels(:, 4) = zeros(size(voxels(:, 4)));
  2 件のコメント
John D'Errico
John D'Errico 2018 年 3 月 4 日
編集済み: John D'Errico 2018 年 3 月 4 日
What about the error don't you understand?
voxels is an array of size 753571 by 3. Surely you know that by reading the first line of what you posted.
But you tried to access voxels(:,4) on the right hand side of that line, thus in:
Error in CreateVisualHull (line 12) voxels(:, 4) = zeros(size(voxels(:, 4)));
Masood Alam
Masood Alam 2018 年 3 月 4 日
Thank u sir

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

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 3 月 4 日
The input for https://www.mathworks.com/matlabcentral/fileexchange/45989-visual-hull-matlab is not well documented, but looking through the routines, voxels(:,1) should be x coordinates, voxels(:,2) should be y coordinates, voxels(:,3) should be z coordinates, and voxels(:,4) should be some kind of value (for example brightness) for the pixel.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by