"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "macros/im2bw.sci" between
sip-0.5.6.tar.gz and sip-0.12.1.tar.gz

About: SIP (Scilab Image Processing) toolbox to do imaging tasks such as filtering, blurring, edge detection, thresholding, histogram manipulation, segmentation, mathematical morphology, color image processing, etc.

im2bw.sci  (sip-0.5.6):im2bw.sci  (sip-0.12.1)
skipping to change at line 57 skipping to change at line 57
end end
Img = im2gray(Img) Img = im2gray(Img)
else else
error('Invalid type of 1st. argument.') error('Invalid type of 1st. argument.')
end end
if (level < 0) | (level > 1) then if (level < 0) | (level > 1) then
error('The threshold level must be in range 0-1.') error('The threshold level must be in range 0-1.')
end end
pause
bw = 1*(Img>=level*maxvalue) bw = 1*(Img>=level*maxvalue)
endfunction endfunction
// //
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// SIP - Scilab Image Processing toolbox // SIP - Scilab Image Processing toolbox
// Copyright (C) 2002-2009 Ricardo Fabbri // Copyright (C) 2002-2009 Ricardo Fabbri
// //
// This program is free software; you can redistribute it and/or modify // This program is free software; you can redistribute it and/or modify
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS