Borrar filtros
Borrar filtros

Enter input arguments by typing them now?

2 visualizaciones (últimos 30 días)
Mary Jon
Mary Jon el 28 de Mayo de 2014
Comentada: Geoff Hayes el 28 de Mayo de 2014
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 comentarios
Mary Jon
Mary Jon el 28 de Mayo de 2014
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 el 28 de Mayo de 2014
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by