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/bash | |
# script creates train.txt and val.txt prepared by processImages.sh script | |
# it assumes that all images are processed and there are 10 images minimum in each category | |
results_folder="images" | |
rm train.txt | |
rm val.txt |
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
name: "oxford102" | |
input: "data" | |
input_dim: 10 | |
input_dim: 3 | |
input_dim: 227 | |
input_dim: 227 | |
layer { | |
name: "conv1" | |
type: "Convolution" | |
bottom: "data" |
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
// based on http://www.magneticrealms.com/posts/2014/02/03/a-crt-filter-without-shaders/ | |
// generateme.tumblr.com | |
// [email protected] | |
void setup() { | |
PImage img = loadImage("w.jpg"); | |
size(img.width,img.height); | |
noFill(); | |
smooth(8); | |
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
// shader example for Processing | |
// uniform - variables set in Processing sketch using shader.set() | |
// varying - variables set by Processing itself | |
// image to process | |
uniform sampler2D texture; | |
// mouse position normalized | |
uniform vec2 inp; | |
// vertex color |
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
// Original: http://www.openprocessing.org/sketch/145401 | |
// adaptation to images, Tomasz Sulej, [email protected] | |
// put image filename here: | |
String imagefilename = "tree.jpg"; | |
// run, after 30 iterations result will be saved automatically | |
// or click mouse when ready | |
///////////////////////////////////// |
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
/* Make fractal from your image | |
* Sketch draws mandelbrot/julia fractal using channel data to initalize/modify 'z' and 'c' variables. | |
* a lot of randomness here: channel selection (RGBHSB), colouring, blending, posterizing, fract type (mandel/julia), some factors | |
*/ | |
// Author, Tomasz Sulej, generateme.tumblr.com | |
// questions? email: [email protected] | |
/* USAGE: | |
* 1. set image name below and run (image should be in the same folder as sketch) |
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
// wzip - a preprocessor for lossy data compression, originally: Copyright (C) 1997 Andreas Franzen | |
// Processing port, Tomasz Sulej, [email protected] | |
// Haar wavelet transformation to glitch your raw images, operates on bytes, use different scaling factors (see below) | |
import java.io.BufferedOutputStream; | |
import java.io.DataOutputStream; | |
// CONFIGURATION, change here | |
String filename = "file.raw"; // file name of your raw, result saved to "res_"+filename | |
float scalingfactorin = 100; // compression ratio (any float) |
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
/* | |
wzip.c v1.0 - a preprocessor for lossy data compression | |
Copyright (C) 1997 Andreas Franzen | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. |
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
/* Generate RAW files which can be sonificated and then imported to IrfanView. | |
* generateme.tumblr.com, 2015, v0.1. | |
* erros? write [email protected] | |
* | |
* To use it change lines: | |
* img = loadImage(<insert image filename here>); | |
* and | |
* makeRaw(<filename prefix>, <channel order or gray>, <bits per pixel>, <bits per 1st channel>, <bits per 2nd channel>, <bits per 3rd channel>); | |
* | |
* Details: |
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 | |
# author: tsulej 2015 // glitching tools | |
# e-mail: [email protected] | |
# Script traverse through the file changes one byte and saves result. Outcome: files with changed first, second, third, ..., nth byte to choosen value | |
# usage: | |
# bash ./all_bytes.sh <filename.ext> <hex value, two letters: 0..f> | |
# warning: use files with small size (<20kb) | |
# example, suppose we have image.gif file with size 999 bytes: | |
# bash ./all_bytes.sh image.gif aa |