Index: /trunk/src/transform_field/phys.m
===================================================================
--- /trunk/src/transform_field/phys.m	(revision 432)
+++ /trunk/src/transform_field/phys.m	(revision 433)
@@ -37,5 +37,5 @@
         DataOut_1=varargin{3};%default second output field
         if nargin>=4 && isfield(varargin{4},'GeometryCalib')
-            Calib{2}=CalibData_1.GeometryCalib;
+            Calib{2}=varargin{4}.GeometryCalib;
         else
             Calib{2}=Calib{1}; 
@@ -93,5 +93,5 @@
         return % transform only fields in pixel coordinates
     end
-    DataOut_1=phys_1(Data_1,Calib{2},ZIndex);
+    DataOut_1=phys_1(DataOut_1,Calib{2},ZIndex);
     if isfield(Calib{1},'SliceCoord')
         if ~(isfield(Calib{2},'SliceCoord') && isequal(Calib{2}.SliceCoord,Calib{1}.SliceCoord))
Index: unk/src/update_obj.m
===================================================================
--- /trunk/src/update_obj.m	(revision 432)
+++ 	(revision )
@@ -1,52 +1,0 @@
-%'update_obj': update the object graph representation and its projection field, record it in the uvmat interface
-%-------------------------------------------------------------------
-%Object_out=update_obj(UvData,IndexObj_1,IndexObj_2);
-
-%OUTPUT:
-% Object_out= cell array of structures containing the properties of the existing objects     .
-%
-%INPUT:
-%UvData: structure stored as 'Userdata' on the uvmat interface, it contains:
-%    .Object{1},{2}... description of all the projection objects 
-%    .Field , the current input field to be projected on the object
-%    .Object{IndexObj}.DisplayHandle_uvmat: handles of the object plot on uvmat, =[] if it does not exist
-%    .Object{IndexObj}.DisplayHandle_view_field: handles of the object plot on view_field, =[] if it does not exist
-%IndexObj_1: index of  the object whose projection is plotted in the GUI uvmat 
-%IndexObj_2: index of  the object whose projection is plotted in te GUI view_field 
-%-------------------------------------
-
-function Object_out=update_obj(UvData,IndexObj_1,IndexObj_2)
-
-%% default input and output
-Object_out=UvData.Object;
-
-
-%%  representation of the different objects in the plots uvmat and view_field
-%plot uvmat
-for iobj=1:length(Object_out) %change the view of all existing objects on the updated current object #IndexObj_1
-    hobject=[];
-    if isfield(Object_out{iobj},'DisplayHandle_uvmat') && ~isempty(Object_out{iobj}.DisplayHandle_uvmat) && ishandle(Object_out{iobj}.DisplayHandle_uvmat)
-        hobject=Object_out{iobj}.DisplayHandle_uvmat;%graphic handle of object #iobj in the uvmat plot
-    end
-    if ~isequal(iobj,IndexObj_1)% object not visible when projected on itself
-        Object_out{iobj}.DisplayHandle_uvmat=plot_object(Object_out{iobj},Object_out{IndexObj_1},hobject,'m');%update the object representation of Object_out{iobj} on Object_out{IndexObj_1}
-        if isempty(Object_out{iobj}.DisplayHandle_uvmat)&&~isempty(hobject)
-            delete(hobject)
-        end
-    end
-end
-% plot view_field
-if ~isempty(IndexObj_2)
-    for iobj=1:length(Object_out) %change the view of all existing objects on the updated  object #IndexObj_2
-        hobject=[];
-        if isfield(Object_out{iobj},'DisplayHandle_view_field') &&  ~isempty(Object_out{iobj}.DisplayHandle_view_field) && ishandle(Object_out{iobj}.DisplayHandle_view_field)
-            hobject=Object_out{iobj}.DisplayHandle_view_field;%graphic handle of object #iobj in the view_field plot
-        end
-        Object_out{iobj}.DisplayHandle_view_field=plot_object(Object_out{iobj},Object_out{IndexObj_2},hobject,'m');%update the object representation
-    end
-end
-
-
-
-
-
