Skip to content

Commit

Permalink
Change type of sky ratio so it is actually a ratio
Browse files Browse the repository at this point in the history
Although all these values should probably be floats (#5), the checks
of this value against sky_threshold certainly weren't working as
designed with it being an int.

Fixes #4.
  • Loading branch information
tokenrove committed Jul 17, 2016
1 parent 28929fe commit 2239091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lim-yen-wu.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct block_metrics
float brightness;
float mean_saturation;
float mean_hue;
int sky_ratio;
float sky_ratio;
};

struct figures_of_merit
Expand Down

0 comments on commit 2239091

Please sign in to comment.