dicomrt_restorevarformat.m 469 B

123456789101112131415161718
  1. function [moutput]=dicomrt_restorevarformat(morig,data)
  2. % dicomrt_restorevarformat(morig,data)
  3. %
  4. % Restore original variable data.
  5. %
  6. % The 3D dataset stored in "data" is associated with the frame given by the
  7. % original dataset "morig" and returned in "moutput".
  8. %
  9. % Seel also: dicomrt_varfilter
  10. %
  11. % Copyright (C) 2002 Emiliano Spezi (emiliano.spezi@physics.org)
  12. if iscell(morig)==1
  13. morig{2,1}=data;
  14. moutput=morig;
  15. else
  16. moutput=data;
  17. end