フィルターのクリア

Enter input arguments by typing them now?

2 ビュー (過去 30 日間)
Mary Jon
Mary Jon 2014 年 5 月 28 日
コメント済み: Geoff Hayes 2014 年 5 月 28 日
Hi all
I am have this problem, when click run the prog. the prog. asked me to enter the input argument by typing it?
where I typing them? In the Editor or in the command window?
  3 件のコメント
Mary Jon
Mary Jon 2014 年 5 月 28 日
appearing near the run bottom as comment ,not in the command window.
this is code of the prog.
function A = OSCaROrbit2ProjectionMatrix(theta_G,du,dv,u_off,v_off,SDD,SAD)
%%**************************************************************************
%%System name: Cone-Beam CT Bench
%%Module name: pmhOrbit2PM.m
%%Version number: 1
%%Revision number: 00
%%Revision date: 16-Dec-2003
%%2002 (C) Copyright by Douglas J. Moseley.
Princess Margaret Hospital
Usage: pmhOrbit2PMIMG
Inputs:
Outputs:
Description:
Open an iView3D IMG file into Matlab matrix object
Notes:
%%*************************************************************************
%%References:
%%*************************************************************************
%%Revision History
%%0.100 2003 12 16 DJM Initial version
%%*************************************************************************
%disp('Entering open_IMG');
% Assumption: SAD, SDD, IAD all constants for idealised circular trajectory
theta_G = theta_G(:);
u_off = u_off(:);
v_off = v_off(:);
N_proj = length(theta_G);
%SDD = SAD+IAD;
A = zeros(3,4,N_proj);
alpha = 0; % Skew angle (for non-rectangular pixels)
for k=1:N_proj
% focal length
f = SDD;
C = [ 1/du tan(alpha) u_off(k)
0 1/dv v_off(k)
0 0 1 ] ;
P = [ -f 0 0 0
0 -f 0 0
0 0 1 0 ];
% transformation from world coordinates to imaging coordinates
% Ri = pmhRotationMatrix(90,0,theta_G(k)+180); % for MV which is 90 degrees out of phase
Ri = pmhRotationMatrix(90,0,theta_G(k)+90);
Xs = [ SAD*cosd(theta_G(k)); SAD*sind(theta_G(k)); 0 ];
Tw = [ Ri -Ri*Xs
zeros(1,3) 1 ];
A(:,:,k) = C*P*Tw;
% Normalize Projection distance to image plane
A(:,:,k) = A(:,:,k)./A(3,4,k);
end
return
Geoff Hayes
Geoff Hayes 2014 年 5 月 28 日
Nowhere in the above code is it asking the user for some input. Which line are you referring to, that which is %disp('Entering open_IMG');? If so, I think that the intent of this statement was just to say (at one time) that the software was now entering the function named open_IMG. Though since it is commented out (and there is no function called open_IMG), it no longer has any relevance. And the code doesn't seem to run anyway since pmhRotationMatrix is undefined.

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

回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by