Skip to content

Commit

Permalink
Descriptions of Brute and Smart sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
czycha committed May 30, 2014
1 parent 41086a0 commit 12ffaa7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ bundle install

## Brute sort ##

Brute sorting uses a user defined range for bandwidths to sort.

```
ruby pxlsrt.rb brute INPUT OUTPUT --min MIN --max MAX [--vertical] [--smooth] [--reverse [no | reverse | either]] [--method [sum-rgb | red | green | blue | sum-hsb | hue | saturation | brightness | uniqueness | luma | random]] [--diagonal] [--verbose]
```
Expand Down Expand Up @@ -66,6 +68,8 @@ Same as above example.

## Smart sort ##

Smart sorting uses edges detected within the image (determined through [Sobel operators](http://en.wikipedia.org/wiki/Sobel_operator)) along with a user-defined threshold to define bandwidths to sort.

```
ruby pxlsrt.rb smart INPUT OUTPUT --threshold THRESHOLD [--absolute] [--edge EDGE] [--vertical] [--smooth] [--reverse [no | reverse | either]] [--method [sum-rgb | red | green | blue | sum-hsb | hue | saturation | brightness | uniqueness | luma | random]] [--diagonal]
```
Expand Down Expand Up @@ -163,4 +167,4 @@ luma(red, green, blue) = red * 0.2126 + green * 0.7152 + blue * 0.0722

### random ###

Randomizes the pixels.
Randomizes the pixels.

0 comments on commit 12ffaa7

Please sign in to comment.