Skip to content

Instantly share code, notes, and snippets.

View symisc's full-sized avatar

PixLab | Symisc Systems symisc

View GitHub Profile
@symisc
symisc / sod_erode_image.c
Created March 28, 2018 01:06
Erode an input binary image - https://sod.pixlab.io
/*
* Programming introduction with the SOD Embedded Image Processing API.
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io
*/
/*
* Compile this file together with the SOD embedded source code to generate
* the executable. For example:
*
* gcc sod.c erode_image.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc
*
@symisc
symisc / sod_rotate_image.c
Last active March 28, 2018 02:47
Rotate an image 180 degree - https://sod.pixlab.io
/*
* Programming introduction with the SOD Embedded Image Processing API.
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io
*/
/*
* Compile this file together with the SOD embedded source code to generate
* the executable. For example:
*
* gcc sod.c rotate_image.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc
*
@symisc
symisc / sod_sobel_operator_img.c
Created March 28, 2018 03:17
Apply Sobel operator on an input image - https://sod.pixlab.io
/*
* Programming introduction with the SOD Embedded Image Processing API.
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io
*/
/*
* Compile this file together with the SOD embedded source code to generate
* the executable. For example:
*
* gcc sod.c sobel_operator_img.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc
*
@symisc
symisc / sod_hough_lines_detection.c
Last active March 29, 2018 15:23
Perform hough line detection (Generally named Hough Transform) on an input image - https://sod.pixlab.io
/*
* Programming introduction with the SOD Embedded Image Processing API.
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io
*/
/*
* Compile this file together with the SOD embedded source code to generate
* the executable. For example:
*
* gcc sod.c hough_lines_detection.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc
*
@symisc
symisc / sod_crop_image.c
Last active April 1, 2018 06:19
Extract a region (crop) from a given image - https://sod.pixlab.io
/*
* Programming introduction with the SOD Embedded Image Processing API.
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io
*/
/*
* Compile this file together with the SOD embedded source code to generate
* the executable. For example:
*
* gcc sod.c crop_image.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc
*
@symisc
symisc / sod_resize_image.c
Created April 2, 2018 13:46
Resize an image (Minify) to half its original size - https://sod.pixlab.io
/*
* Programming introduction with the SOD Embedded Image Processing API.
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io
*/
/*
* Compile this file together with the SOD embedded source code to generate
* the executable. For example:
*
* gcc sod.c resize_image.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc
*
@symisc
symisc / bin2c.c
Created August 26, 2017 13:43 — forked from albertz/bin2c.c
bin2c
#include <stdio.h>
#include <assert.h>
int main(int argc, char** argv) {
assert(argc == 2);
char* fn = argv[1];
FILE* f = fopen(fn, "r");
printf("char a[] = {\n");
unsigned long n = 0;
while(!feof(f)) {
@symisc
symisc / sod_grayscale_image.c
Last active April 16, 2018 15:56
Grayscale colorspace conversion - https://sod.pixlab.io
/*
* Programming introduction with the SOD Embedded Image Processing API.
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io
*/
/*
* Compile this file together with the SOD embedded source code to generate
* the executable. For example:
*
* gcc sod.c grayscale_image.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc
*
@symisc
symisc / sod_draw_bbox.c
Last active April 16, 2018 16:33
Draw a bounding box (bbox) on each blob region - https://sod.pixlab.io
/*
* Programming introduction with the SOD Embedded Image Processing API.
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io
*/
/*
* Compile this file together with the SOD embedded source code to generate
* the executable. For example:
*
* gcc sod.c blob_detection.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc
*
@symisc
symisc / sod_batch_image_loading.c
Last active May 6, 2018 22:20
Load all supported image format present in a given directory - https://sod.pixlab.io
/*
* Programming introduction with the SOD Embedded Image Processing API.
* Copyright (C) PixLab | Symisc Systems, https://sod.pixlab.io
*/
/*
* Compile this file together with the SOD embedded source code to generate
* the executable. For example:
*
* gcc sod.c batch_img_loading.c -lm -Ofast -march=native -Wall -std=c99 -o sod_img_proc
*