Skip to content

Commit

Permalink
Moved some files around. Started installing Eclipse and Java 8 for the
Browse files Browse the repository at this point in the history
build system. Really just want to rewrite this in vanilla Java.
  • Loading branch information
PoopLord1 committed Aug 10, 2018
1 parent ac854f8 commit 1ac7c1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions TextPix.pde → remove_text/TextPix.pde
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class TextPix implements Comparable {
class TextPixel implements Comparable {
int location;
int imgWidth;
HashMap<Integer, Integer> selfPixelHash;

public TextPix(int location, HashMap<Integer, Integer> ph, int imgWidth) {
public TextPixel(int location, HashMap<Integer, Integer> ph, int imgWidth) {
this.location = location;
this.selfPixelHash = ph;
this.imgWidth = imgWidth;
Expand Down Expand Up @@ -54,4 +54,4 @@ class TextPix implements Comparable {
return this.getNumRelevantPixels(null) - ((TextPix) o).getNumRelevantPixels(null);
}
}
}
}
5 changes: 3 additions & 2 deletions remove_text.pde → remove_text/remove_text.pde
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import java.util.*;
import TextPix;

PImage origImage;

void setup() {
size(750, 1334);
origImage = loadImage("image2.PNG");
origImage = loadImage("input_data/image3.PNG");
surface.setSize(origImage.width, origImage.height);
process();
}
Expand Down Expand Up @@ -245,4 +246,4 @@ void process() {

updatePixels();
save("out.jpg");
}
}

0 comments on commit 1ac7c1b

Please sign in to comment.