"Pixel Sorting"
in
Programming Questions
•
2 years ago
Hello everyone,
I'm incredibly intrigued by the techniques that the artist Kim Asendorf has employed in the creation of his stunning collection of works, entitled "Mountain Tour." They can be seen at his website, http://kimasendorf.com/images/mountain-tour/
I've scoured the internet and Processing resources attempting to find a way to achieve a similar effect. Everything I've found is either out-dated and obsolete, rendering it irreclaimable and unusable on account of my sub-par programming knowledge, or simply faulty. The programs that I've actually managed to run have simply returned with nothing - either the code is runnable but still faulty, or the code is achieving an effect that isn't similar to that of Kim Asendorf's.
Pasted below is what I am currently experimenting with. I'm extremely new to Processing and only capable of producing very simple programs/functions without consulting external resources. I recall locating the majority of the below code on a website a few weeks ago, and I'm unable to remember where I found it, or get the program to work. Does it actually achieve a similar effect to that of Kim Asendorf's when functional? I get the feeling I'm missing the actual meat of the program.
Any assistance would be greatly appreciated, be it in the form of explanation, confirmation, or programming. If someone could point me in the right direction, you would make my day week month! I am absolutely transfixed on this incredible technique!
I'm incredibly intrigued by the techniques that the artist Kim Asendorf has employed in the creation of his stunning collection of works, entitled "Mountain Tour." They can be seen at his website, http://kimasendorf.com/images/mountain-tour/
I've scoured the internet and Processing resources attempting to find a way to achieve a similar effect. Everything I've found is either out-dated and obsolete, rendering it irreclaimable and unusable on account of my sub-par programming knowledge, or simply faulty. The programs that I've actually managed to run have simply returned with nothing - either the code is runnable but still faulty, or the code is achieving an effect that isn't similar to that of Kim Asendorf's.
Pasted below is what I am currently experimenting with. I'm extremely new to Processing and only capable of producing very simple programs/functions without consulting external resources. I recall locating the majority of the below code on a website a few weeks ago, and I'm unable to remember where I found it, or get the program to work. Does it actually achieve a similar effect to that of Kim Asendorf's when functional? I get the feeling I'm missing the actual meat of the program.
Any assistance would be greatly appreciated, be it in the form of explanation, confirmation, or programming. If someone could point me in the right direction, you would make my day week month! I am absolutely transfixed on this incredible technique!
- PImage img;
void setup() {
size(750, 500);
img=loadImage("darker branches.jpg");
}
void draw() {
image(img, 0, 0);
int P = int [2+K=+1];}
for (int v= 1; v <= h-2; v++);
for (int u = 1 ; u <= w-2; u++);
for (int j = -1; j <= 1; j++)
for (int j = -1; i <= 1; j++)
P[k] = copy.getPixel(u+i, v+j);
k++;
Array.sort(P);
orig.putPixel(u, v, P[K]);
}
3