Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pcichowski committed Apr 9, 2022
1 parent a8bcfc7 commit 290ffb7
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 25 deletions.
21 changes: 20 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,23 @@
edge_detection_c.sln
edge_detection_c.vcxproj
edge_detection_c.vcxproj.filters
edge_detection_c.vcxproj.users
edge_detection_c.vcxproj.users
x64/Release/edge_detection_auxiliary.obj
x64/Release/edge_detection_c.log
x64/Release/vc142.pdb
x64/Release/edge_detection_c.tlog/CL.command.1.tlog
x64/Release/edge_detection_c.tlog/CL.read.1.tlog
x64/Release/edge_detection_c.tlog/CL.write.1.tlog
x64/Release/edge_detection_c.tlog/edge_detection_c.lastbuildstate
x64/Release/edge_detection_c.tlog/unsuccessfulbuild
x64/Release/edge_detection_c.exe
x64/Release/edge_detection_c.exe.recipe
x64/Release/edge_detection_c.iobj
x64/Release/edge_detection_c.ipdb
x64/Release/edge_detection_c.pdb
x64/Release/edge_detection_c.vcxproj.FileListAbsolute.txt
x64/Release/main.obj
x64/Release/edge_detection_c.tlog/edge_detection_c.write.1u.tlog
x64/Release/edge_detection_c.tlog/link.command.1.tlog
x64/Release/edge_detection_c.tlog/link.read.1.tlog
x64/Release/edge_detection_c.tlog/link.write.1.tlog
Binary file modified images/output/architecture.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/output/car_at_night.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/output/car_city.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/output/city_chicago.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/output/city_la.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/output/flowers.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/output/lizard.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/output/parrots.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/output/sea.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion source/edge_detection_auxiliary.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

size_t channels = 3;
#define LICZBA_MASEK 4

struct ImageMatrix {
uint8_t** matrix;
Expand Down
24 changes: 1 addition & 23 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,13 @@
#include "edge_detection_algorithms.h"


#define LICZBA_MASEK 3

void executeForAllImages();

void detectEdges(const char* inputPath, const char* outputPath);

int main() {

/*
int width, height;
const char* inp = ".\\images\\input\\car.jpg";
uint8_t* image = stbi_load(inp, &width, &height, &channels, 3);
uint8_t* gray = get_channel(convert_to_grayscale(image, width, height), width, height, 0);
struct ImageMatrix image_mat;
image_mat.width = width;
image_mat.height = height;
image_mat.matrix = image_to_matrix(gray, width, height);
gaussian_blur(&image_mat);
detect_edges(&image_mat, 150, 50);
uint8_t* output = matrix_to_image(&image_mat);
stbi_write_jpg("./images/output/car.jpg", width, height, 1, output, width * channels);
stbi_image_free(image);
*/

executeForAllImages();
return 0;
}
Expand Down

0 comments on commit 290ffb7

Please sign in to comment.