Code covered by the BSD License
-
A=sign01(B);
-
A=sign02(B);
-
ImageColor=SimpleRoadImage(Ii...
% This is an implementation of CONFIGR,
-
ImageColor=SimpleRoadImageBla...
-
ImageColor=SimpleRoadImageFun...
-
InterpolateDiagonalLines(I,Ip...
Usage:Iinterp = InterpolateDiagonalLines(I,Ipixels)
-
InterpolateLines(Iin,type,Sub...
Created on 11/14/2005
-
OutBool=CheckBound(LocImin,Lo...
% This is an implementation of CONFIGR,
-
[OutBool , NumFilledOut]=Chec...
This function checks to see if a rectangle is bounded by tracks
-
imresize_old_CONFIGR(varargin)
IMRESIZE Resize image.
-
plotIpixels(Ipixels,Iinterpol...
% This is an implementation of CONFIGR,
-
runCONFIGR(I,varargin)
% This is an implementation of CONFIGR,
-
AddNewRectangles.m
-
CONFIGR_6.m
-
CONFIGR_6_CreatePlots.m
-
CONFIGR_6_FindBound.m
-
CONFIGR_6_Init.m
-
CONFIGR_6_Init_Function.m
-
CONFIGR_6_LobePropagate.m
-
CreateNewDiagonals.m
-
EmptyRectangleTypeOne_Ground_...
-
EmptyRectangleTypeTwo_Ground_...
-
FillingFIGURE.m
-
FillingGROUND.m
-
View all files
from
CONFIGR (CONtour FIgure and GRound)
by Massimiliano Versace
CONFIGR (CONtour FIgure and GRound) is a model that performs long-range contour completion.
|
| InterpolateLines(Iin,type,SubPixRes)
|
%Created on 11/14/2005
%This Function creates the interpolating diagonals of the empty rectangles
%that span figure in SimpleCrawlMayConflict. The algorithm is general
%enough that it creates a diagonal in any rectangle. type decides which
%main diagonal is to be spanned. type='normal' chooses the identity
%diagonal.
% Algorithm:
% 1 Take Rectangle as Input; Compute Smallest size (row or column)
% 2 Compute an eye Matrix of that size and resize it size of Input.
% 3 Xor this with input and present as output.
% Note: Input is assumed to be binary. Output is constrained to be binary
function Iout = InterpolateLines(Iin,type,SubPixRes)
IinSize=size(Iin);
minIinSize=min(IinSize);
Ieye=eye(round((minIinSize-1)/SubPixRes));
if type==1
Iout=sign02(imresize_old(Ieye,IinSize)+Iin);
else
Iout=sign02(imresize_old(fliplr(Ieye),IinSize)+Iin);
end
|
|
Contact us at files@mathworks.com