Skip to content

Commit

Permalink
added default constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalkishor1991 committed Sep 21, 2014
1 parent 6fcb4a8 commit 485d073
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/me/croma/image/DBScanColorPicker.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
* Using DBScan algorithm to cluster Colors.
*/
public class DBScanColorPicker implements ColorPicker {

public DBScanColorPicker() {

}

public List<Color> getUsefulColors(Image img, int noOfColors) throws IOException {
Image image = img.getScaledInstance(Math.min(50, img.getWidth()), Math.min(img.getHeight(),50));
int h = image.getHeight();
Expand Down
6 changes: 6 additions & 0 deletions src/me/croma/image/MedianCutColorPicker.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

public class MedianCutColorPicker implements ColorPicker {

public MedianCutColorPicker() {

}


@Override
public List<Color> getUsefulColors(Image img, int noOfColors) throws IOException {
Image image = img.getScaledInstance(noOfColors, 1);
Expand All @@ -22,4 +27,5 @@ public List<Color> getUsefulColors(Image img, int noOfColors) throws IOException
}
return r;
}

}

0 comments on commit 485d073

Please sign in to comment.