jst
c37f8f8470
gofmt
2013-04-09 21:59:02 +02:00
jst
62777ac833
Precalculate bicubic factors, save some cycles.
2013-04-09 21:31:31 +02:00
jst
6448fff2ee
Generalize spline based filters
...
This also fixes a quality issue with Mitchell-Netravali: A factor was
missing in the calculation.
2013-04-04 22:32:33 +02:00
jst
5290c4773b
Add Travis build status in README
2013-04-03 20:50:30 +02:00
jst
09f4012229
Add Travis integration
2013-04-03 20:42:17 +02:00
jst
da95f74904
go fmt
2013-03-10 11:55:50 +01:00
jst
852f4a47e7
Merge branch 'no-image-shift' of http://github.com/jsummers/nfnt.resize
...
Merge branch 'fix-canvas-size-issue'
2013-03-10 11:33:44 +01:00
jst
84039c403b
Test for correct canvas size.
2013-03-10 10:58:08 +01:00
jst
b6fef854bc
Merge branch 'improve-canvas-size' of http://github.com/jsummers/nfnt.resize into fix-canvas-size-issue
2013-03-10 10:46:06 +01:00
jst
82ab8b977c
Make kernel the only dependency of convolution1d
2012-12-13 22:13:37 +01:00
jst
e512502b3c
Use range for more idiomatic Go
2012-12-13 21:55:44 +01:00
jst
bf09bbe0a3
boolToUint: true -> 1
2012-12-11 20:35:47 +01:00
jst
a32116ce4a
Add documentation
2012-12-11 20:35:02 +01:00
jst
0c69e0e0b7
Change order of fields in filterModel
2012-12-11 20:24:30 +01:00
jst
bf006ca38d
Description added
...
Describe filterModel interface,
Extract bool-to-int method
2012-12-11 20:18:23 +01:00
jst
2d6edc049a
Change ordering
2012-12-11 19:57:34 +01:00
jst
cfcbeb4bb2
Use replicated border in genericConverter
2012-12-10 21:26:34 +01:00
jst
dc1fcd1d24
gofmt
2012-12-10 19:52:41 +01:00
jst
f6fa51fe2f
Merge branch 'master' of https://github.com/nfnt/resize
2012-12-10 19:33:12 +01:00
jst
378e366327
Replicate border instead of using a constant
...
Constant border could lead to wrong values alpha values with certain
configurations.
2012-12-10 19:27:21 +01:00
jst
dd1c157427
Include kernel boundary check
...
Filter kernels should yield Zero if they are evaluted outside their
intended size. Though filterModel.Interpolate doesn't do this by design,
it's better to include it anyways.
2012-12-10 18:56:53 +01:00
Jason Summers
cdbd68f34f
Improve the way the new canvas size is calculated
...
If both dimensions are given, always use those dimensions, avoiding roundoff
error.
If only one dimension is given, slightly prefer rounding the other dimension
up, to rounding it down.
2012-11-27 20:49:01 -05:00
Jason Summers
3d9094eb9e
Center the resized image on the canvas, instead of shifting it slightly
2012-11-27 20:38:19 -05:00
jst
1169a8bfc3
Include samples in README.md
2012-11-14 22:08:45 +01:00
jst
3e06045c3f
Speed up computation: Try to avoid Image.At() as much as possible -> specialized color access for some image types
2012-09-21 20:02:25 +02:00
jst
c9865dedd2
Update README.md
2012-09-19 21:13:38 +02:00
jst
8d42efa983
Update README.md
2012-09-19 21:04:52 +02:00
jst
e548f52385
Blur input image during downscaling by scaling the filter kernel to prevent moires in the output image
2012-09-19 21:03:56 +02:00
jst
d0b2b9bc39
Added MitchellNetravali, changed Lanczos a bit
2012-09-19 19:32:00 +02:00
jst
c980eecff5
Small simplification
2012-09-16 09:20:11 +02:00
jst
c2daecb43a
Update README.md
2012-09-15 20:41:05 +02:00
jst
e96bbe5547
Unify filters and their dependencies
2012-09-15 20:24:14 +02:00
jst
3fc31c95cc
Kernel simplified
2012-09-15 19:30:32 +02:00
jst
eaf9383af0
filters.go simplified
2012-09-14 23:12:05 +02:00
jst
524fd851ea
Casting float to int has the same properties as math.Floor
2012-09-04 22:51:19 +02:00
jst
d93161631c
Use Kernel normalization for more accurate Lanczos resampling. Lanczos2 filter added
2012-09-04 18:49:04 +02:00
jst
339b8fd43a
Speed up calculation by avoiding dynamic casting
2012-09-01 00:21:10 +02:00
jst
294efa80bb
Prevent resize from doing things multiple times if #CPUs > width
2012-08-23 19:36:02 +02:00
jst
5389d2694d
Fix errors in README.md
2012-08-09 19:04:04 +02:00
jst
89ac70595b
Merge branch 'master' of https://github.com/nfnt/resize
2012-08-09 19:01:45 +02:00
jst
9041d4db18
Function signature changed again, no need for multiple return value
2012-08-09 18:58:57 +02:00
jst
6b67b636b8
Function signature changed again, no need for multiple return value
2012-08-09 18:56:42 +02:00
jst
a2154d46c5
Documentation updated to new function signature
2012-08-08 21:39:51 +02:00
jst
14d51db8b4
Changed function signature to include error handling. Filters simplified.
2012-08-08 21:32:51 +02:00
jst
d573c463cb
ignore superfluous files
2012-08-06 22:07:36 +02:00
jst
84d1ddbc29
Merge branch 'master' of https://github.com/nfnt/resize
2012-08-06 21:53:26 +02:00
nfnt
f725c68998
fixed typo, thanks liuben
2012-08-06 21:49:02 +02:00
jst
602c775fde
Update README.md
2012-08-03 21:24:22 +03:00
jst
1d35119758
Update README.md
2012-08-03 21:17:28 +03:00
nfnt
2d612957ed
fixed typo
2012-08-03 18:22:12 +02:00