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

vb_reverse_mask

PURPOSE ^

reverse mask pattern

SYNOPSIS ^

function PP = vb_reverse_mask(Pimage,level)

DESCRIPTION ^

 reverse mask pattern
 B = vb_reverse_mask(Bin, level)
 --- Input
 Bin   : image data
 level : threshold
 --- Output
 B = 0 for Bin >  level
   = 1 for Bin <= 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_reverse_mask(Pimage,level)
0002 % reverse mask pattern
0003 % B = vb_reverse_mask(Bin, level)
0004 % --- Input
0005 % Bin   : image data
0006 % level : threshold
0007 % --- Output
0008 % B = 0 for Bin >  level
0009 %   = 1 for Bin <= level
0010 %
0011 % Copyright (C) 2011, ATR All Rights Reserved.
0012 % License : New BSD License(see VBMEG_LICENSE.txt)
0013 
0014 Dim = size(Pimage);
0015 PP    = zeros(Dim);
0016 
0017 ix    = find( Pimage <= level);
0018 PP(ix) = 1;

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