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
// 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
// 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
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
#!/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: "MYNET" | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 224 | |
input_dim: 224 | |
layer { | |
name: "conv1/7x7_s2" | |
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
// DOTS2 example code for http://mcreativecoding.tumblr.com project | |
// Tomasz Sulej, [email protected] | |
// http://generateme.tumblr.com | |
// @2015 | |
// move mouse to change visualisation | |
// click to change parameters | |
// space to save animation frames |
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
// GenerateMe | |
// chladni pattern generator | |
// press space to save | |
// click to random change | |
float b1 = 1; | |
float b2 = 1; | |
float b3 = 1; | |
float b4 = 1; | |
float b5 = 1; |
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
// generateme.tumblr.com, 2016 | |
// idea by zach lieberman | |
// choose variant | |
int variant = 0; // 0 or 1; | |
void setup() { | |
size(800, 800); | |
background(0, 5, 25); | |
strokeWeight(0.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
// create vertex glyphs from fonts | |
final static int stepsize = 10; // less - more accuracy | |
final static int beams = 20; // more - more accuracy | |
final static int NONE = -1; | |
final static int shape_type = NONE; // or any shape type used in beginShape() function | |
final static boolean curve = true; // only with shape NONE | |
HashMap<String, ArrayList<PVector>> letters = new HashMap<String, ArrayList<PVector>>(); |