James Jackson-South
94cd3d7411
Revert "Color is now linear by default."
This reverts commit c4114b2ef1 [formerly 144be0509d7ce2e2702b13b1ea60f708083e4912] [formerly 549f0ac778eb8b1a12d7b7e38280f360aa71ad59] [formerly 3869ebe4d426df2fba1e2996c2fed464a0a55357].
Former-commit-id: a6e0888c25d48a7982a297bfda0ecbc90e20a3d0
Former-commit-id: e404d156c276660e88d0524cce840205c0bb7214
Former-commit-id: ea32434d8dc919a710f521f358ad939a98ada9fe
10 years ago
James Jackson-South
b45718af6d
Color is now linear by default.
Former-commit-id: 3869ebe4d426df2fba1e2996c2fed464a0a55357
Former-commit-id: 549f0ac778eb8b1a12d7b7e38280f360aa71ad59
Former-commit-id: 144be0509d7ce2e2702b13b1ea60f708083e4912
10 years ago
James Jackson-South
2766a48e67
Clean up and refactor transforms
Former-commit-id: a271439562519bf789b9921757f7104ff36f48d4
Former-commit-id: 278c182399dc0dad003820a7d0add538fe9bd79b
Former-commit-id: 3485efba5a8e001e0015bc435a1052494167deb2
10 years ago
James Jackson-South
792b76f607
Optimize color transforms
Former-commit-id: b83e9583552ecf37fd352756e9de926f7b0179f9
Former-commit-id: 6121e75909714430aa9b4b0d6ec97e6c13cc969e
Former-commit-id: 0bb0f32ab256914beaa9181bb8d8a4c741d35fdc
10 years ago
christopherbauer
6a40452a15
Fix the partial struct issue in #298
Former-commit-id: 5633cbc801b1f69ce97aac5e2c768eb9b24ae798
Former-commit-id: aceef6262bc1372ae91581633e5f106633b5f2af
Former-commit-id: aad7fa159b413aec0fd153857ac7068a9f0a7221
10 years ago
James Jackson-South
b5dce7c93d
SIMD optimisations
Former-commit-id: 84d7baf1143adab15d23d4bbc5011ac2e70364c1
Former-commit-id: 8510f8d406386e97d26b5e4a28044cfb61e9ff88
Former-commit-id: a2ae716d4495a9c2a1d6334838c5103ec4f0190e
10 years ago
James Jackson-South
b027133503
Add Color.Transparent
Former-commit-id: d18d0ef6b152c19270e54157e1026490040a6cab
Former-commit-id: 1d1d7bda80c783f9cb1e8c8b1ebfeca2de750d53
Former-commit-id: 421d0caa589e3609c75e01d21b48e15c54fe7aae
11 years ago
James Jackson-South
2500f78ca5
Another attempt at fixing Lerp.
Former-commit-id: 78db70bb872f472dacc4a796327f850a960cccd8
Former-commit-id: b2dafc5639de3428cae03cdb0af0b4787046e70e
Former-commit-id: e0e2e48957c3ed209524478b4678fc6125b54496
11 years ago
James Jackson-South
e8f6157023
Better transparency handling
Former-commit-id: a1d0f5d52b21aa76531f86ee63f75973311e1837
Former-commit-id: b3f3963a089a4c99ae8ceda8b4ad019b19e32ec2
Former-commit-id: eb5b4e013f56035cd961b03e213cea128ee5e88b
11 years ago
James Jackson-South
756f5b6a93
Clean up primitives
Former-commit-id: 5cf1ec2ba4cf646e94524fb425951760724b3eae
Former-commit-id: cc0f2177a28de32d6df34b0d23bfcba3ec898c0c
Former-commit-id: 8f2227320a0891bc824fb7256b97d536f381a76a
11 years ago
James Jackson-South
d34fe1281f
More lenient colour space equality checkers
Former-commit-id: 1c88a93699ffa6f2bceb33cefe86cdf631209847
Former-commit-id: a12c96eaacba895e7f3eda8dbd7fd0c5a6cf61b8
Former-commit-id: c463e27fdc0a66c5425294313642baaf6fa0959e
11 years ago
James Jackson-South
d0206d840f
Much better Vignette
Former-commit-id: bf66ade8e91b57cb482edc2bf7454d2a1152f756
Former-commit-id: 79ac4517af9f7bdc2ca57c3f3ec4fbe652354806
Former-commit-id: c872366e83395265eb0046a1ae798e42a5d3b7f6
11 years ago
Rubens Fernandes
ea9a94380f
XYZ code updated, tests working against ColorMine.org.
Former-commit-id: ecae28a9750c0c723a532d9ccf69144485078c3a
Former-commit-id: 6ccc3bf53c4fcc21f5f9dd06e7d53a4df682112d
Former-commit-id: 2e296778ce0c04cead45461ae6a7d4251cfc0031
11 years ago
James Jackson-South
d1c1d8bc87
A few Color tweaks
Perf improvements + API clarity improvements.
Former-commit-id: 23e6a036da892f79806c032023c5ebf38a5f868b
Former-commit-id: 36fbc42b2acee9cc1480dcade6d250161f41ea1a
Former-commit-id: 6a108bdb9c56a07967c7089f2b0adfcc45bf05c9
11 years ago
Rubens Fernandes
60e7351cb7
Now tests match ColorMine.
Former-commit-id: c7d55f44c558d6d77df183a3e8bdc2c9a0fcc94a
Former-commit-id: 59d24dd0b4440b6067dc6630dc453b06fa70184d
Former-commit-id: 4d0025941b7d5617a8b5c8bebcb37cfec8f13415
11 years ago
Rubens Fernandes
f02afa93fc
Tests included. Having a hard time making the unit test results match any web converter to a high degree. I am using the Colormine coefs, but since their calculations use double and I am using float, I am still in trouble with a few values.
Former-commit-id: 8f8231221d36e7e525c0353b7f906a8363b05d0e
Former-commit-id: 73f3a7688ab2d7840a025c8abc00d00c8efb641f
Former-commit-id: d5c59acaf4dcb0acec1803264c969c8dcb4260c1
11 years ago
Rubens Fernandes
c36a2cc4f0
Not finished.
Former-commit-id: e750623f68a59d5ce646aae196f82b15d4beccf3
Former-commit-id: bbe62d934e4987b5aa9e6959e86cce4773e762da
Former-commit-id: 34e990b2c4c5b61ffa90892dac615a57e17f82c1
11 years ago
Damiaan
70e8c4224f
CieXyz color space: add transform CieXyzToColor
Former-commit-id: 443e4165941ac4de303c983a84e99721c533e34f
Former-commit-id: 540d751f3c78e57ba07fc70437680822d77cf73e
Former-commit-id: 2c25af1e056e30c0233878f3b0d8c4c1dd54c9ca
11 years ago
Damiaan
648dd3bae0
Implement Color to CieXyz
Former-commit-id: 30d11dfcf3694d2bcab810593f043fee37268bb0
Former-commit-id: a0d32bef8e42a9d220b14a923d5127ff2ed43237
Former-commit-id: a31bf557f48688a92af1f6ddad3b9288f0792ff2
11 years ago
James Jackson-South
8a58cb23be
Add HSL touch #260
Former-commit-id: 8596939ae841cee506be5327c7bba085d28c0453
Former-commit-id: 9e70e88253d02d7ffec313b8182c1d4ad2d3f6bc
Former-commit-id: 805a8600f0577b4572533d44841e8c7b9079fc82
11 years ago
James Jackson-South
e1379cb6f2
Fix format conversion output.
Former-commit-id: 8ae3e66a843e57054180b1433b0fca3e9f5e1205
Former-commit-id: 6613571207f92916dd31e60bfbfd29820c194663
Former-commit-id: 865d3eda06966a5a3a1c08744aad6b25cc73e62e
11 years ago
James Jackson-South
5f4ddea739
Better color definition headers
Former-commit-id: e85f90056e0ae5dff2056af0ca0ba3d79ba928bc
Former-commit-id: 3fc761744a5638b7cfdab0a49b939fdd9d079b17
Former-commit-id: 11bc9da17b66f3e902c33f35caa63f5494dcc051
11 years ago
James Jackson-South
077dc165d4
Moar updates
- EntopyCrop
- Color definitions
- Pixelate
Former-commit-id: 5605d078e59f63faf9354f1d80093e6c26096bff
Former-commit-id: c0ca96e94e189a760fe3d77f69d3470efc8d385f
Former-commit-id: ae7c743d17bde56511d6b312b9fbf9163f99da9c
11 years ago
James Jackson-South
f64574f3bc
A few updates
- Some predefined colors
- Source image should not get overwritten
- Begin EntropyCrop - unfinished.
Former-commit-id: 15096078a8c4c81e5c38b07111496b9382e98583
Former-commit-id: 1525d80b8094e74ee0b1a64a291e9fdc606b0438
Former-commit-id: 7ca269955bd18bb8c1793b3038c95f8f976694a1
11 years ago
James Jackson-South
47e4f66d9e
Better transparency handling in encoders
Former-commit-id: 4ac66346af234c105628b588a84a4cb746c3e6ad
Former-commit-id: 3c249d1fb3e2860e3df77b1cb8e30bd60fda1db4
Former-commit-id: fb192a7e2fdaedf1b75173c8283b44642614d81d
11 years ago
James Jackson-South
b8760a8693
Various fixes
- Fix alpha clamping on Resize to prevent bleed.
- Finish Color premultiplication updates
Former-commit-id: e0cc8e3c08b0626fe1a1a7ce4c2f1246c1b912ca
Former-commit-id: 503f9fa8137a2ff561d697bb2a4cdd2071f1728d
Former-commit-id: 51ee649dbfec8fc8cc4db412ac6b743ba2ce991c
11 years ago
James Jackson-South
1a449f0629
Add premultiplied alpha
Former-commit-id: 19e9707988c7eea57137289d395c61a3c64dfcbc
Former-commit-id: 7345f59fdb18429fd71d617c493ef6b9a2e006fa
Former-commit-id: 2f7b5f2b751c0c26fc588d7fddcb93f67844d5a5
11 years ago
James Jackson-South
5673b119a9
Avoid divide by zero
Former-commit-id: cff8caa266353b9074290e878e99e1443e249a45
Former-commit-id: fd97b06cc7eed6df6dd11f1575ea8c810a06f760
Former-commit-id: f3cb76149fcd020a99014762d89820d9a1ea4440
11 years ago
James Jackson-South
823ea46e0d
Switch out List for ImmutableArray
Use my full name.
Former-commit-id: 329d5d6ae345d28b6c120966b77641cec4dce101
Former-commit-id: 121cd1a695ad5d3da170725385a3e555b5536798
Former-commit-id: c34c57087a21e44a404066329e2512d678eef567
11 years ago
James Jackson-South
28a2c021d4
Add Premultiplied methods
This will allow me to write code to translate to/from premultiplied
colors when loading/saving formats
Former-commit-id: 278c8c79db008e019b595b4c3a410f641077184d
Former-commit-id: f9ea4706cb4c9f8b9857ec9d86de6c5a5b9306c6
Former-commit-id: 2e228c9e75548e448bc0701ee6532b8d5df724e5
11 years ago
James Jackson-South
8ce6458ab4
Use compand and inverse.
Former-commit-id: d767103ac110d527e2d62c4582f25d5fbc382795
Former-commit-id: d6c8f8645138596b21a29206bb94426ca2913392
Former-commit-id: b78498a1668f0f302ce829365675ba9cac8b81c2
11 years ago
James South
16af180f9f
Add Compand methods to Color
This will eventually replace the PixelOperations methods.
Former-commit-id: b146c617f33431ace1ca71b32a6ab743d4b96c6c
Former-commit-id: 85db58fe32a3e4c7cfb07972eb47ec86dceba9b2
Former-commit-id: b77b762a1295de23bb36a0ad4b4557e03b5998d9
11 years ago
James Jackson-South
8ce0085eda
Fix Bgra32.ToString()
Former-commit-id: 7557d3cdd7fd95ec468e609e6bceda343f6a52b9
Former-commit-id: 6306f95c07dba6081883fb33588b7b21f5465632
Former-commit-id: 9bbc76da966c76bfea8bd23b8e04e30368c6898b
11 years ago
James Jackson-South
d06bb12469
Filters now use correct color struct.
Former-commit-id: 532b3bb4f629e1f61451c1549f855617245c6b34
Former-commit-id: 70f1bfd3db4addc970722242bf3f153958cc91c4
Former-commit-id: e3087704f67c536e89c807e5e1f89f81b67cbb6f
11 years ago
James Jackson-South
eba8920d18
Wire up Bgra32 to match others
Former-commit-id: 6df70bbcb522e8463342caf7c4bc19236ccd1977
Former-commit-id: dbf66da49cbb9c7de53421015fcb221a8f05a22b
Former-commit-id: cf4e7e4e2046a257d27661c57f2bb23a1a940123
11 years ago
James Jackson-South
d63df6015f
Color to YCbCr conversion
Former-commit-id: a620d27747491613c79a92ffd032029372517519
Former-commit-id: fc91d91e5ef644862b8ab857e7f10f91d1e7c324
Former-commit-id: 999a10160075a1ad545513a4c5fdddd1006abc0e
11 years ago
James Jackson-South
1bdf766e50
Color to CMYK conversion
Former-commit-id: 19ef3f0b5766df8f02ad5257cf952cbcff38552d
Former-commit-id: 0ed3ad845f74a410f94de38b7cd9e751c3d1baaa
Former-commit-id: 30ee7d2e2fe873ba3e7700db51010f4578d66c30
11 years ago
James Jackson-South
9c78e6cddd
Color to HSV conversion
Former-commit-id: 6227131bb3135663590c4790097f4391738f6f81
Former-commit-id: 24fd283f6ffd6fa5b78e9b7ab37432d4a69ee9d8
Former-commit-id: dcf087a8c090c99170c4fa3806a13aad8dd69c5c
11 years ago
James Jackson-South
b40f83194a
Fix Color component order
Former-commit-id: 851778bc5ece309963a04164270dd93c24ee914c
Former-commit-id: 22497c332d115463ca5a008cd1ec35c31dcc32fa
Former-commit-id: 8e841b0f35ca1d340151ecb2fda8f04483eaafe1
11 years ago
James Jackson-South
d673e2c8e8
Switch over to new Color struct as default.
Former-commit-id: 1cb78f9723ddcdd4bcf45c27d7571423629ad0c6
Former-commit-id: 727c1b5eeaec657fa541ef64e118006c2b74911f
Former-commit-id: 7c9b65f6d71f10e9c3ce8193ae797f30b8c291f2
11 years ago
James Jackson-South
30ed18b00b
Add equality operators to Color
Former-commit-id: 88c11becb4ea6efc48a71344885166e712c40f9c
Former-commit-id: 53a0080606eef456292adaf24a7953fde4e54c1f
Former-commit-id: e8faf988c449ef533666496919914e6f9d299e6a
11 years ago
James Jackson-South
9242023b09
Fix stylecop issues
Former-commit-id: 32fab43d5caf3080106d0abdcd6e629370af58ac
Former-commit-id: 9aeaff7b7a973554d98e7b2932e1e4d5ca489176
Former-commit-id: 52800893572012a00a3331cc6cab3f8f449fd26d
11 years ago
James Jackson-South
c8b3355282
Reshuffle colors, improve accuracy of cspace conversion
Former-commit-id: 3c378bc93b0edd73d1c8f07fab33b1943b9d4411
Former-commit-id: 2fa968ca7c3535ab92251d55afba20e64c574089
Former-commit-id: 12065bfba7ce14e175d99d15d2f0a937665fa395
11 years ago
James Jackson-South
b0a8c50342
Attempt to speed up operations using vectors.
Former-commit-id: f3cf2caa49c0fd2075cb9663c999ceb208d3078c
Former-commit-id: e0e2ccaa6c0965e6f1b1d60b196e68f9a247f03f
Former-commit-id: 50fcf6c30047e68324c66e69c13af4bfec7256de
11 years ago
James Jackson-South
0d5ee638ff
Cleanup plus perf
Former-commit-id: 63f72c2f2fe3fcc93bc33dc34d53fd510c8b303f
Former-commit-id: 62ee31e766620df396d7155a7b30bf09ce7ba4c3
Former-commit-id: ba93e7236c32f9b633c2d754781a641da27cc3c0
11 years ago
James Jackson-South
1e5fac8ff9
Update to NET 4.6 etc
Former-commit-id: 13504b6bd87f681d061848d19c5f3cb607e96dc6
Former-commit-id: eff308eb2d06484cbe38ef3a808f29584233ac6e
Former-commit-id: fc96b270e55c0ed1d7dd47e2769402c348bf298e
11 years ago
James Jackson-South
f4ffe6ea8f
Add CMYK
Former-commit-id: 54a215c4aa6345b6212363d54bc8d9a5f02e7781
Former-commit-id: 52248f095b97580ffb1ec3e74b8c800111737d0b
Former-commit-id: b8f9a815107ed78eb00a4d23741212cbc984790e
11 years ago
James Jackson-South
1f2a7e4b66
Cleanup implicit operators
Former-commit-id: 2b2b1bef44413972fcc80d6c35096ef99a81e261
Former-commit-id: aa808e49a13b2329bbe0b20711104219bfbb6c9b
Former-commit-id: 0b5728ab09e8f032ef02a68aa9ce3aec9dbc2b73
11 years ago
James Jackson-South
1ca560974b
Stylecop fixes
Former-commit-id: 7b8fc04d018b9909e6ecc8121c6922d1355a6c16
Former-commit-id: b97cade764cac6b18f519bb1fdb5fbb94e999e4a
Former-commit-id: 79a3910c2bcac489aebc9818dae4fe4aa1cc9ea8
11 years ago
James Jackson-South
ef09899838
Fix HSV/BGRA conversions.
Former-commit-id: 15347486e210642b35e35e1c3220d86778897773
Former-commit-id: ce3d10d48dc5149cb84ac3c6fb2d442c98d0950a
Former-commit-id: ed21c57a33d1f5da11052bb97746f0ebeb63597e
11 years ago