Home > data-import > supporting_functions > lib > add_edge.m

add_edge

PURPOSE ^

SYNOPSIS ^

function output = add_edge(img, edge_widths, edge_heights)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function output = add_edge(img, edge_widths, edge_heights)
0002 output = add_left_right_edge(img', edge_heights);
0003 output = add_left_right_edge(output', edge_widths);
0004 end
0005 
0006 function output = add_left_right_edge(img, edge_widths)
0007 height = size(img, 1);
0008 output = [zeros(height, edge_widths(1)), img, zeros(height, edge_widths(2))];
0009 end

Generated on Wed 24-May-2017 00:00:56 by m2html © 2005