Rubens Fernandes
9ae86ee816
Simple change to emulate the V2 resize behaviour - if either width or height is zero, then the image is scaled keeping its aspect ratio.
Former-commit-id: 624a5693a4bbc9181a113f64e126e70233cacdd9
Former-commit-id: 9741756887b97eb777904afb0782a1a0d481f7c1
Former-commit-id: 43d8122ac4ed7e214f704812f5614b701ed4a81b
11 years ago
James Jackson-South
f3c20d1234
Add RotateFlip Fix #261
Also add ClonePixel method to ImageBase
Former-commit-id: 02d6a5907cab2d7b6676d1adb1a08f008019ba6c
Former-commit-id: d08034c48be2dd64b949fdcdd76192c6b9558f5e
Former-commit-id: 92f3d2bafb4cf97d360aa99183a177d52cbe4cca
11 years ago
James Jackson-South
48985a74f9
Add nearest neighbour resampler #257
Former-commit-id: 8e6ac4bf4ee07615c7bb707aedc12afccd1647af
Former-commit-id: 40db8d0882d4974b675fd0cd7531eabb7c701210
Former-commit-id: 99fdd9fb8851e2e23510f3682f671acf06620a31
11 years ago
James Jackson-South
0d707dd6f3
Fix broken tests and cleanup.
Former-commit-id: 8ffd61fd16ba32d300ae6cb0bd4a1f4d40915097
Former-commit-id: 2d3f52bf43aaaf8dec769b5f8d537523ad27769f
Former-commit-id: 91c3011b36fc412d8a17ec6102357e7108160813
11 years ago
James Jackson-South
4edee74cd6
Moar updates
- EntopyCrop
- Color definitions
- Pixelate
Former-commit-id: ab6fb2aee9f035186c0bdbf547bed966c30f9b43
Former-commit-id: 538eed7fb5f4e4cd6e1841cfe3ca1ea3720c8733
Former-commit-id: c1f8a66e00f1c4d77d77befa3b3ac3b66b8fffb8
11 years ago
James Jackson-South
9c1b52fdb0
A few updates
- Some predefined colors
- Source image should not get overwritten
- Begin EntropyCrop - unfinished.
Former-commit-id: b850425cf724060eaebcd6cb26322e5c66b9cc31
Former-commit-id: bf58b1a1716bae742273be8976b5e500294246c5
Former-commit-id: c76bf52819d11562b005453042dab203c58b6d6b
11 years ago
James Jackson-South
4bad05e82b
A slightly better fix for rotation alpha bleeding.
Former-commit-id: 646bf9a47dd4ed4f9654584920323014128d9460
Former-commit-id: ec7c1edbcda7d5029dae26a5dd7ae629302bf633
Former-commit-id: db9785704051ea50c3ed9ea9f03f23c7289e1a6d
11 years ago
James Jackson-South
47d83fe696
More rotation improvements/tweaks.
Former-commit-id: e52c082647f8b243036e6f15e77bfe072dadd386
Former-commit-id: a0250cc078824f9463a474a5002418888e11798e
Former-commit-id: 68ad7c778dfc94f46300a0ef99e3fc19d4059a9b
11 years ago
James Jackson-South
c0997492a1
Better transparency handling in encoders
Former-commit-id: f270c42392da5923b647c9a020b2cab5f0d8246a
Former-commit-id: c4aff598526059b09d4c1e4ee7a782e317c686b6
Former-commit-id: 7e6cb00b0ece0f5968d6f69262f3c0c576b6d750
11 years ago
James Jackson-South
06745e845e
Slight resampler improvements.
Former-commit-id: de4bf89d2a8844507e7c9c60f1621633d139c196
Former-commit-id: 918a88897c6982ff4bec7f360fbc9324c8bffd5e
Former-commit-id: e8516b18aa2743002c5eba48e5e5972f643e318a
11 years ago
James Jackson-South
09f561219c
Make rotation nearly work.
Former-commit-id: 82b3c2d28c50b3d04c72d39167c063e3dcc4aba4
Former-commit-id: 4f42a0a278c5eaa2061c9cd8b8c64f8d2e1201bd
Former-commit-id: 90e0c27f9639952a46856afbb56ea0ad1c5f5f2a
11 years ago
James Jackson-South
750d38ba21
Add rotation to resampler
- TODO: Better edge handling.
Former-commit-id: c4c65b5dd47357ff419119ddf1f3d4f0e3a5c5e4
Former-commit-id: 22ecdf450bc106f6b1c3e0f3c4cb2cd5a2a010ab
Former-commit-id: 95089f4cd166de28c8133aa873ae4195b1b8ffbf
11 years ago
James Jackson-South
c443346068
Various fixes
- Fix alpha clamping on Resize to prevent bleed.
- Finish Color premultiplication updates
Former-commit-id: 52998716848b710dad059ce767ac5c14e6f3cac7
Former-commit-id: b63167e01bb7ab827438cf3cdd4e39bbff9c5249
Former-commit-id: a3dfdeaae32f9fd0463cd9da76cf0b7ef1c93571
11 years ago
James Jackson-South
33876ba193
Switch out List for ImmutableArray
Use my full name.
Former-commit-id: 68931f6382eb2988fb29b31ea82ea03c48f967a3
Former-commit-id: 07b72753f259aae27c2eeea8d8ade919ab11fd98
Former-commit-id: c564a2e6328096acf051af9def4656e75ad2547c
11 years ago
James Jackson-South
9f5267a493
Use compand and inverse.
Former-commit-id: 6613974e95dea97465c0252e785cd80b6f1f33bc
Former-commit-id: 17648f2923890ff36fe4fd2f3bc0223835fd4db7
Former-commit-id: 63c6fa184d0e73dade3f06952b84ef33dd86393f
11 years ago
James Jackson-South
8a8214173e
Stylecop fixes
Former-commit-id: 4ce25cbac837525bb98af107d3126f4cad6ed5e7
Former-commit-id: 5f18082024474a701dc45c921aae1878dab85a37
Former-commit-id: 1bd9cb859cc44a2bdc09a0ed66c1e389ed93ac80
11 years ago
James Jackson-South
04b05fb00e
Refactor edge detection to streamline API
Former-commit-id: 9e5b8edfb049780f3f8a553f02b2fee20b29f91d
Former-commit-id: 66241f9dd5f8be909f03d8b6435e86f69b3f95d4
Former-commit-id: b34b5df5f557b528d9dcea49e92d93532b984cb6
11 years ago
James Jackson-South
76453c53b1
Fix method overloads.
Former-commit-id: fbfb52d5297d300da706b5db93e795ef2322b3e0
Former-commit-id: 133d57f85a2b58458f49bb27c0366289d86d9b9b
Former-commit-id: b00aa38bd47cbf8563a77f981bb9d9f5a7c8a4a3
11 years ago
James Jackson-South
ba3b4c6085
Add rectangular crop.
Also add overloads to Gaussian blur and sharpen.
Former-commit-id: 22acbbb813129bc07f7c433baaeee4f677eca785
Former-commit-id: a7c535f850892fb3c473180b088010d0a49c289f
Former-commit-id: 253f560eb43283d9794c4fab342eb09f664375b8
11 years ago
James Jackson-South
6f9db94123
Add more filter methods to API
Former-commit-id: d4780ca73ce16b8c9274d881ae7798f6e4988e59
Former-commit-id: 8bd63c9e392fead7e065614385bd73551f2cfdde
Former-commit-id: 04b6f741e5ce9928a6d3406ec65e31fb7f9bbcd3
11 years ago
James Jackson-South
99fe9a95d3
Fix Color component order
Former-commit-id: 598bd56e7d1a761d597e18801693abf9225c6f4a
Former-commit-id: 6d3d12d925b47cac694bc95756b497a0bfbe9788
Former-commit-id: 2c78f8823a7bd28288ea1a69021383997ff036b1
11 years ago
James Jackson-South
cad02dd0a5
Remove multiplication
Former-commit-id: 144ecfc26979bbd2bc589ce36ba7188339f1f746
Former-commit-id: 6829fb5a79b7f46df17bacbbc4df662a4012c634
Former-commit-id: 96dc08f0b0b8a16cf9e55eb3c3f1e274479e36a8
11 years ago
James Jackson-South
a44eb438be
Fix stylecop issues
Former-commit-id: d901cd8d2492eff7048d62296f4f3e53e7083dd1
Former-commit-id: 224e01f61e0dcd4fecaf49112562f974b00989a0
Former-commit-id: 671034a706cdfb6d188f90d3b03018b2849a303e
11 years ago
James Jackson-South
70f9057346
Reshuffle colors, improve accuracy of cspace conversion
Former-commit-id: 21db4ab00e856eae2f405ef0fba5637db1a309ac
Former-commit-id: 6e9b3dd6524e5d7c811547f2808a95c720fe02b6
Former-commit-id: 291d39f6d5dcfed05b49bbfda0f78e4f48112d7f
11 years ago
James Jackson-South
c723c10b33
Attempt to speed up operations using vectors.
Former-commit-id: a28745bb3a7a48769718459f660aee59dc6727fd
Former-commit-id: 3cea324866d570efa674f7ea8cfcf964a3283f58
Former-commit-id: 8eb414b88e6c70055d2653818694c0fc8c95ba83
11 years ago
James Jackson-South
78d43506d4
Cleanup plus perf
Former-commit-id: eee5a95a9773ca04ae1ac4fc3621a3cede95d72b
Former-commit-id: 1c6d20e0334e12c809773a43ff81326f4a4823aa
Former-commit-id: bdfcd5892564543a1f65b45d57777404cdd930df
11 years ago
James Jackson-South
d3e310f358
Update to NET 4.6 etc
Former-commit-id: 507fcf53a7df87e203954e187fbb61bec515ddbb
Former-commit-id: ce1d96184a059188a0f1040350c7da84764c294a
Former-commit-id: 7cd451ad1df8bcf080bfb01d3b6c4a89f10c8d78
11 years ago
James Jackson-South
214b8f9f09
Remove old resizer
Former-commit-id: 46af7747e3c139d822a72eed28f9bbab0577faa1
Former-commit-id: 3eda11a7d18ccf73c2da72c500ea43ab1ef1fcfc
Former-commit-id: a31aed5e31ae969755fa7439088c34d188a41c27
11 years ago
James Jackson-South
7bb98d3931
Add Lanczos5
Former-commit-id: 6055bc865b95eeb9d89c3d6d5e7859ba7707f2e5
Former-commit-id: 552ea8768e0b173fd5fe103645da6c8f16cf143e
Former-commit-id: 5594f396a9ffbb48272a27d1cd7d49e40021c399
11 years ago
James Jackson-South
b7cb38d16e
Fixed resize. 😄
Former-commit-id: b52d0b39a7a48ca3c8e42ea9bec8d7bf6a8b7097
Former-commit-id: 3f7f8f2bc002838aee0133b92010625cbf69f121
Former-commit-id: 3a530d30f8e2574cb9bc2648c53e1866aae0793b
11 years ago
James Jackson-South
1606d54a7e
Resizer updates
Getting closer but still not quite right.
Former-commit-id: a4a9888db607a76e6173b49ce6f063754eccf117
Former-commit-id: 6e2e78e949c7d2a9f66572ca55c57a8cb5e85691
Former-commit-id: 63567e454b970474ae443266d065fc251f2f65e7
11 years ago
James Jackson-South
4db1884835
Add error description
Former-commit-id: e015519c677560b93ac0d13470949cda12d090b6
Former-commit-id: 8699ed2d8a7eb733e7a38c04b56cc745aa355e9c
Former-commit-id: 4d4ab5bae1a6bba7d61502e0a019d50a834f285c
11 years ago
James Jackson-South
1fc138bc3b
Cleanup for debugging.
If Parallelism > 1 then something goes wrong with the pixel sampling. It
could be as simple as a rounding error but I'm struggling to see what
the bug cause is.
Former-commit-id: 222bb4f5982a37ad03dc1ddd47a7d437699ba6b6
Former-commit-id: 1e85ef9bfa7f17bb703c84dee5b6b18734ca7401
Former-commit-id: f6bbb2fbae3df6e9753e16dbcf80c75c7d7f93a3
11 years ago
James Jackson-South
5793ea73c2
Experimental resampler. Need y-axis fix
Former-commit-id: 9c4e407244d5f3c4dca2acfdae80d4a1b09e91e2
Former-commit-id: df3578fe9a9da69ec0306cddc3427dd706dec866
Former-commit-id: 2142bb6dd2a6a2b959093598792335443f853651
11 years ago
James Jackson-South
612541b891
Add new test image for rewrite
Former-commit-id: 894501ba723e1643831c3917acb0bd7e064fc75b
Former-commit-id: a1bce60477ba5acdf54f4432bdb646bd95326f29
Former-commit-id: c539e6aeab3edf3ebde7658fece6972c321b7362
11 years ago
James Jackson-South
c15a6e8773
Cleanup
Former-commit-id: 153a8a74a9dc4a7250267f4ab878216052e2aaa0
Former-commit-id: 542aa329a58642a43f593d7861da4052c753619a
Former-commit-id: c5800506bcd41b36b88c4ebf0afc933ffdda9161
11 years ago
James Jackson-South
7d7c9fef6c
Adding some resamplers
Former-commit-id: 81377f2d574fe5778b5a24c968c53bd967e8f08d
Former-commit-id: 0dbdf15a7d41f51a7ca109a1b6fc39954c6cfa69
Former-commit-id: 48d223ff221f92f49f12685d44c09839bb76b2e4
11 years ago
James Jackson-South
2ee0e8bbe6
One method to rule them all.
Former-commit-id: 0410a102603bdf7911fc5f02a5b660540a45b525
Former-commit-id: c6d66869a91cd30afae4ae28993716fa67a9c1f4
Former-commit-id: 31b7fdd178103ba89133976d86788e5c4de6f20c
11 years ago
James Jackson-South
ee743a7118
Add Lanczos3
Former-commit-id: 083ac391afe84f4305517c0ad4ea783bec1732d8
Former-commit-id: 1fd26a05db26d7573be02dae89937816beaec508
Former-commit-id: 68aafabac8f507618fa366b86540e4030b66db47
11 years ago
James Jackson-South
71150eb356
Fix resizer
Former-commit-id: 0f0d2739f45120a86ae6edccd317188bd5c55d4f
Former-commit-id: ccfc42ef41d6111c1b36d7eb724c6f56bcd3a6c9
Former-commit-id: cc921b9be1a33c5944c060d3712a2bac88ac1ca6
11 years ago
James Jackson-South
4688eaa5f6
Begin add resize
Not working correctly just now. Y calc is wrong.
Former-commit-id: 21b81ada54ca20a5ba1f08cb0fce9c57dd7237b2
Former-commit-id: b9800debdc5306d6935be95808bef72b34c2b9bc
Former-commit-id: b06159adfd6ec098e13f9509a14b0f5bb3d8369e
11 years ago
James Jackson-South
be1ca0de80
Simplify base API.
Former-commit-id: 1f97479c4fd7a60da0674d4b29f5d5518001b2ea
Former-commit-id: b8b07a469002f9a1675b35bab35d64750aae32be
Former-commit-id: b975e8eebb39e125358987fb866a4d1980689604
11 years ago
James Jackson-South
3d3d74f673
First rough filter API attempt
Former-commit-id: e355d9dc0b3efaee0c8c54435090041dac447c45
Former-commit-id: 7ef69bb6c4f28b1e6ae704d84963c4aa7bd53073
Former-commit-id: 6a152f3985346d0b61a2f654f7eebbda8f46f265
11 years ago