diff options
author | jvech <jmvalenciae@unal.edu.co> | 2023-06-25 08:59:31 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2023-06-25 08:59:31 -0500 |
commit | e9ee82e712a79decb30387905998e06296a8cea7 (patch) | |
tree | 61851031351c9cd8b237163092ba2ceea9e2db1b | |
parent | a937fc89721b1e7895d186838b13b5782f3fd782 (diff) |
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -193,7 +193,8 @@ int main(int argc, char *argv[]) }; float *kernel = NULL; - if (!strcmp(filter, "edge")) kernel = edge; + if (!filter) usage(); + else if (!strcmp(filter, "edge")) kernel = edge; else if (!strcmp(filter, "blur")) kernel = blur; else if (!strcmp(filter, "sharpen")) kernel = sharpen; else usage(); |