Home > src > BN_pol_rec > functions > findRoadPix.m

findRoadPix

PURPOSE ^

coordinates of x y

SYNOPSIS ^

function [roadNo, pxNo] = findRoadPix(x,y,positionRoad_no)

DESCRIPTION ^

coordinates of x y

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 function [roadNo, pxNo] = findRoadPix(x,y,positionRoad_no)
0003 %coordinates of x y
0004 roadNo = 0;
0005 pxNo = [];
0006 idx_row = find(positionRoad_no(:,1) == x);
0007 for i = 1:length(idx_row)
0008    if positionRoad_no(idx_row(i),2) == y 
0009        pxNo = positionRoad_no(idx_row(i),1:3); 
0010        roadNo = positionRoad_no(idx_row(i),4);
0011        return
0012    end;
0013 end;
0014     
0015

Generated on Wed 16-Mar-2005 09:17:47 by m2html © 2003