Home > vbmeg > functions > common > morphology > vb_gray_2_mask.m

vb_gray_2_mask

PURPOSE ^

make mask image

SYNOPSIS ^

function PP = vb_gray_2_mask(Pimage,level)

DESCRIPTION ^

 make mask image
 PP = vb_gray_2_mask(Pimage,level)

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function    PP = vb_gray_2_mask(Pimage,level)
0002 % make mask image
0003 % PP = vb_gray_2_mask(Pimage,level)
0004 %
0005 % Copyright (C) 2011, ATR All Rights Reserved.
0006 % License : New BSD License(see VBMEG_LICENSE.txt)
0007 Dim = size(Pimage);
0008 PP    = zeros(Dim);
0009 
0010 ix    = find( Pimage >= level );
0011 PP(ix) = 1;

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005