Code covered by the BSD License
-
calc_ortho_extreme( T,r,epsil...
CALC_ORTHO_EXTREME examines the orthogonal or "normal" on the curve
-
calc_refined_field( tf, im, s...
-
calc_sparse_field( image )
-
calc_vote_ball(T,im,sigma)
-
calc_vote_stick(T,sigma,cache...
CALC_VOTE_STICK votes using stick tensors returning a new
-
convert_tensor_ev( i1, i2, i3...
CONVERT_TENSOR_EV converts the tensor field to eigenvectors and
-
create_ball_tensorfield( sigm...
CREATE_BALL_TENSORFIELD creates a ball tensor field, sigma
-
create_cached_vf( sigma )
-
create_stick_tensorfield( uv,...
CREATE_STICK_TENSORFIELD Creates a second order tensor
-
demo(file)
-
find_features( im, sigma )
FIND_FEATURES returns the tensorfield after voting on the binary image im
-
read_dot_edge_file( filen )
READ_DOT_EDGE_FILE reads in the file and outputs a tensor
-
show_tensorfield( T )
SHOW_TENSORFIELD displays in a new figure the tensor field
-
View all files
from
Tensor Voting Framework
by Trevor Linton
Implementation of the 2D medioni tensor framework
|
| calc_sparse_field( image ) |
function [ T ] = calc_sparse_field( image )
[h w] = size(image);
T = zeros(h,w,2,2);
[rows,cols] = find(image>0);
n = size(rows,1);
for i=1:n
T(rows(i),cols(i),:,:) = [1,0;0,1];
end
end
|
|
Contact us at files@mathworks.com