This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # http header | |
| echo "Content-type: text/html" | |
| echo "" | |
| # our html code | |
| echo "<html>" | |
| echo "<head><title>upload</title></head>" | |
| echo "<body>" | |
| if [ "$REQUEST_METHOD" = "POST" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define STOPPER 0 /* Smaller than any datum */ | |
| #define MEDIAN_FILTER_SIZE (13) | |
| uint16_t median_filter(uint16_t datum) | |
| { | |
| struct pair | |
| { | |
| struct pair *point; /* Pointers forming list linked in sorted order */ | |
| uint16_t value; /* Values to sort */ | |
| }; |