H00458396: HSDEC MEDIAN NORM
This project implements a basic image processing technique in C, includes median filter (apply_MEDIAN) and normalization (apply_NORM).
- Median Filter (apply_MEDIAN): Smoothens the image by replacing each pixel's value with the median of its neighbors in 1x1 matrix (top, bottom, left, right,).
- Normalization (apply_NORM): Rescales pixel values to the range of 0-255 for better visualization and consistency.
- Using any linux machine (WSL/ Virtual Machine also works)
- Root access to the program by the computer (this can be done with 'chmod -x ./process' for example)
- Any image file in '.hsdec' format in the same folder as the program (i've included 2 example images and their output ppm image in the folder).
- Compile the code using the already included makefile. eg. run - 'make'
- Run the code using './process INPUTFILENAME OUTPUTFILENAME'. eg. run './process portrait.hsdec newPortrait.hsdec' 3.Convert the output file from '.hsdec' to '.ppm' using the already included 'hsconvert.py' file. eg. run './hsconvert -f PPM newPortrait.hsdec viewPortrait.ppm'
- View the output image using any compatible image viewer in your machine.
- Standard C libraries (no external dependencies)