Skip to content
Snippets Groups Projects
Commit 25831b22 authored by marwan's avatar marwan
Browse files

uint8 of order patterns and order matrix

parent 877278c1
No related branches found
Tags v5.6
No related merge requests found
......@@ -79,6 +79,9 @@ function xout=crp(varargin)
% $Revision$
%
% $Log$
% Revision 5.9 2006/10/24 14:16:16 marwan
% minor change: sigma in title line of RP shown only for normalised data
%
% Revision 5.8 2006/03/29 13:07:55 marwan
% problems regarding OPRPs and embedding resolved
%
......@@ -751,7 +754,7 @@ switch(action)
set(findobj('Tag','Status','Parent',findobj('Parent',hCRP,'Tag','CRPPlot')),'String','Compute Order Matrix'),drawnow
px = permute(x2, [ 1 3 2 ]);
py = permute(y2, [ 3 1 2 ]);
X = px(:,ones(1,NY),:) >= py(ones(1,NX),:,:) - e;
X = uint8(px(:,ones(1,NY),:) >= py(ones(1,NX),:,:) - e);
X = X';
if check_stop(hCRP,hCtrl,nogui,obj), return, end
......@@ -796,7 +799,7 @@ switch(action)
px = permute(pattX', [ 1 3 2 ]);
py = permute(pattY', [ 3 1 2 ]);
X = px(:,ones(1,length(y2)),:) == py(ones(1,length(x2)),:,:);
X = uint8(px(:,ones(1,length(y2)),:) == py(ones(1,length(x2)),:,:));
X = X';
if check_stop(hCRP,hCtrl,nogui,obj), return, end
......
......@@ -81,6 +81,9 @@ function xout=crp2(varargin)
% $Revision$
%
% $Log$
% Revision 5.10 2006/10/24 14:16:16 marwan
% minor change: sigma in title line of RP shown only for normalised data
%
% Revision 5.9 2006/03/29 13:07:55 marwan
% problems regarding OPRPs and embedding resolved
%
......@@ -1153,7 +1156,7 @@ switch(action)
px = permute(pattX', [ 1 3 2 ]);
py = permute(pattY', [ 3 1 2 ]);
X = px(:,ones(1,length(y)),:) == py(ones(1,length(x)),:,:);
X = uint8(px(:,ones(1,length(y)),:) == py(ones(1,length(x)),:,:));
X = X';
if check_stop(hCRP,hCtrl,nogui,obj), return, end
......
......@@ -77,6 +77,9 @@ function xout=crp_big(varargin)
% $Revision$
%
% $Log$
% Revision 5.8 2006/10/24 14:16:16 marwan
% minor change: sigma in title line of RP shown only for normalised data
%
% Revision 5.7 2006/03/29 13:07:55 marwan
% problems regarding OPRPs and embedding resolved
%
......@@ -786,7 +789,7 @@ switch(action)
set(findobj('Tag','Status','Parent',findobj('Parent',hCRP,'Tag','CRPPlot')),'String','Compute Order Matrix'),drawnow
px = permute(x2, [ 1 3 2 ]);
py = permute(y2, [ 3 1 2 ]);
X0 = px(:,ones(1,NY),:) >= py(ones(1,NX),:,:) - e;
X0 = uint8(px(:,ones(1,NY),:) >= py(ones(1,NX),:,:) - e);
if check_stop(hCRP,hCtrl,nogui,obj), return, end
X(1+Ny2*(j-1):Ny2+Ny2*(j-1),1+Nx2*(i-1):Nx2+Nx2*(i-1))=X0';
X(NY0+1:end,:)=[];
......@@ -832,7 +835,7 @@ switch(action)
px = permute(pattX', [ 1 3 2 ]);
py = permute(pattY', [ 3 1 2 ]);
X0 = px(:,ones(1,length(y2)),:) == py(ones(1,length(x2)),:,:);
X0 = uint8(px(:,ones(1,length(y2)),:) == py(ones(1,length(x2)),:,:));
X(1+Ny2*(j-1):Ny2+Ny2*(j-1),1+Nx2*(i-1):Nx2+Nx2*(i-1))=X0';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment