00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "imageFilter.h"
00016
00017
00018
00019
00020
00021
00022 ImageFilter::
00023 ImageFilter(bool allow_last_param) :
00024 ImageWriter(allow_last_param)
00025 {
00026 clear_runlines();
00027 if (_allow_last_param) {
00028 add_runline("[opts] inputimage outputimage");
00029 }
00030 add_runline("[opts] -o outputimage inputimage");
00031 }
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 bool ImageFilter::
00042 handle_args(ProgramBase::Args &args) {
00043 if (!check_last_arg(args, 1)) {
00044 return false;
00045 }
00046
00047 return ImageReader::handle_args(args);
00048 }