Fix rectangular windows, add argument parsing
authorLukas Jiriste <ljiriste@student.42prague.com>
Wed, 10 Apr 2024 11:30:03 +0000 (13:30 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Wed, 10 Apr 2024 11:39:16 +0000 (13:39 +0200)
commit7560edab98799ada7b5bfa2394dc8a30a73276f6
tree0e1befb7a7a7609fa2e8e79e5baa6848456a9bbf
parent3489ce9e63785dcb0bcfc15622b60b01177ce37b
Fix rectangular windows, add argument parsing

When height and width were not the same, the program would crash
because the access to a matrix had rows and columns switched.
 (image x axis corresponds with column number of matrix)
Add 4 options for argument parsing:
 height
 width
 (level of) detail
 (maximum) undersample
main.c