read_base
来自「image processing including fourier,wavel」· 代码 · 共 49 行
TXT
49 行
#!/bin/sh#--------------------------- Shell MegaWave2 Macro --------------------------#_sccsid="%Z%MegaWave2 %R%, %M% %I%, %G%";_Prog="READ_BASE"_Vers="1.1"_Date="1996"_Func="Report informations about the SR database (Shape Recognition Module)";_Auth="Lionel Moisan";_Usage=""#---- MegaWave2 - Copyright (C) 1992-94 J.F. & S.P. All Rights Reserved. ----## input: none# effect: print some parameters of the base# output: none## MegaWave2 modules used: none#----- Check syntax -----if [ $# -ne 0 ] then . .mw2_help_lg_comfi#----- Check base directory -----if [ -z "$BASEDIR" ] then echo "No BASEDIR directory ! Please set the BASEDIR variable." exit 1fiif [ ! -d $BASEDIR ]then echo '$BASEDIR='$BASEDIR" is not a valid directory !" exit 1fiif [ -r $BASEDIR/references ]then echo "|------------------------------------------------------------" echo "| base : "$BASEDIR echo "| size : "`wc -l < $BASEDIR/references`" object(s)" echo "|------------------------------------------------------------" ls $BASEDIR | egrep -v 'references|signature' echo "|------------------------------------------------------------"else echo "Base inconsistent or empty."fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?