This repository contains projects made for Digital Image Processing and Analysis course
during summer semester of 3rd year of Data Engineering and Analysis on AGH UST.
Create new conda environment from environment.yml
conda env create digital-image --file=environment.yml
Or from requirements.txt
conda create -n digital-image -f requirements.txt
You can use the main.py
script on top of this project to choose one program and run it.
See help for all options.
python main.py --help
This program generates a fractal using affine transformations from image or draws points.
drawing.py
- It usesturtle
package for drawing of each point.generator.py
- generates a fractal from specified image.plots.py
- plot for generated fractal.transformations.py
is the Affine Transformation class which has 4 transformation matrices and a method to get each matrix randomly.utils.py
- function to load and save image andMAX_ITERATIONS
constant.
To generate fractal from an image:
python fractals/main.py --path <path to image>
To draw each point in a loop:
python fractals/main.py
This program filtrates an image using kirsch operators and plots the results using matplotlib
.`
filtration.py
- here is the main filtration functionsoperators.py
- here is a class with kirsch operatorsplots.py
- here is a function for plotting the resultsutils.py
- loading and saving the image and other utilities
Tu run the program use
python kirsch/main.py --path <path to image>
This program performs binary on greyscale closing on input image.
closing
- inside this package there arebinary
andmono
morphology functionselement.py
- here is class with structural elementplots.py
- here is a function for plotting resultsutils.py
- functions to load and save an image and check its type
To run this program you must specify path
. You can specify radius
for the structural element otherwise
program will use default value of 5.
python closing/main.py --path <path to image> --radius <radius>
This program creates a heatmap of geodetic distances within a binary image.
element.py
- here is class with structural elementgeodetic.py
- here is the main function that creates the heatmaplogical.py
- logical image dilationplots.py
- here is a function for plotting the resultsutils.py
- here are the functions to load and save the image
To run this program you must specify path
. You can specify radius
for the structural element and x
and y
coordinates otherwise the program will use default values.
python distances/main.py --path <path to image> --radius <radius> --x <x> --y <y>