James Jackson-South
02fc215f8f
A few Color tweaks
Perf improvements + API clarity improvements.
Former-commit-id: 219c3e9ea9c2b53b77a4d4ee3455a20bccc07e56
Former-commit-id: 43460627a23abbaccb4d094de9d87a87b83d5752
Former-commit-id: cfcae0b8648bf971cd3ffc93c9cf7e56f8f520b8
11 years ago
Rubens Fernandes
b7c2a21023
Now tests match ColorMine.
Former-commit-id: 230fc9b5be97d89cd2192a142d6b6d3f0292db1c
Former-commit-id: bbf2282ee1f10635708894b4fbc6623f77d6d62d
Former-commit-id: 6b394493a6b33248d6cd63ee55fa8b1200f85b3f
11 years ago
Rubens Fernandes
cb690286ec
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: e70cd5f9e2ca95e8c7f349fd7eed8669eb64a169
Former-commit-id: 75df1cb3a3c8bf5915cc7d29bf053d9b3b82a42b
Former-commit-id: b0582b9a280ccd32912e14b7df7f99063589b27e
11 years ago
Rubens Fernandes
0511e6b812
Not finished.
Former-commit-id: 72ffa4557a16eb5fecc2eff4a0877304c760eb89
Former-commit-id: 884424c2d761c372c4bc720474fb5268c0fc7ed3
Former-commit-id: 3a228da3c7a44aa86c5a030a6be873c55ffe4bf6
11 years ago
Damiaan
dbd06ac826
CieXyz color space: add transform CieXyzToColor
Former-commit-id: e596ceb45d6865499a639cf69302a6e493a68d43
Former-commit-id: 489871ee81e15cb14b8a9abf4a2de3edbf479aa4
Former-commit-id: 3f99cab909be147d8de52b98eddb016ccdbc08ff
11 years ago
Damiaan
c7c1dccc61
Implement Color to CieXyz
Former-commit-id: e9f3a4c56744f7ac8cf5dca76b56b12674855897
Former-commit-id: 3c1f69241e551983af4d922acd8e70f346931c17
Former-commit-id: e99c077f2782b167c1fc56f4a9679f5dd309f7ea
11 years ago
James Jackson-South
607ab569a7
Add HSL touch #260
Former-commit-id: 0a0ca798962992d41de153521c152ad580196b5d
Former-commit-id: 4d62a056ed53003d7cd7b27afe1223b1ffbd3112
Former-commit-id: 0ad895da812baacd7daf7f85d4bb8138d3834905
11 years ago
James Jackson-South
8ee5b4245c
Fix format conversion output.
Former-commit-id: 2936205e13fa5329caf84d98691898c1f312cd02
Former-commit-id: dbfc0b5e29033f3357511c71c298940ff0ff9f5d
Former-commit-id: e996c20ff4b2cc6a2a76953b532dd7560f0cf735
11 years ago
James Jackson-South
da08c4f28f
Better color definition headers
Former-commit-id: 6173b3d76a30a9a16035626e1dae8b788f721ab1
Former-commit-id: 0f2be4da3228acb844f32610c32b325696b398cb
Former-commit-id: 8f05cb1234520fb78820fd465d16bb61cf1adcb8
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
c0997492a1
Better transparency handling in encoders
Former-commit-id: f270c42392da5923b647c9a020b2cab5f0d8246a
Former-commit-id: c4aff598526059b09d4c1e4ee7a782e317c686b6
Former-commit-id: 7e6cb00b0ece0f5968d6f69262f3c0c576b6d750
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
1b6a0035d1
Add premultiplied alpha
Former-commit-id: 346fe4d5a27014ff153447113eee4406c9b9d07e
Former-commit-id: fd5c29c65e88e8ba292879950f70ea072848753a
Former-commit-id: 8c2da3d64065b5884117016885a26c5913b932de
11 years ago
James Jackson-South
4947448c2e
Avoid divide by zero
Former-commit-id: 37a9ad0ae9c4e824e54d0becb560366fe6663766
Former-commit-id: 63a75877c37e18e610e14098ed7b4428e76b43e7
Former-commit-id: 43a26373dc21e0422276ac0dc6b763d6b45d5f60
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
1f50f115f3
Add Premultiplied methods
This will allow me to write code to translate to/from premultiplied
colors when loading/saving formats
Former-commit-id: 5ba8e92de4a011d927ec6b28a6e70b3d335eefb1
Former-commit-id: 5af8bc63b945b20e82bf8b3fbfb38e966492ff98
Former-commit-id: eb0f193101a1b84b23d6d6ab35f3dcfa7fa8ab49
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 South
c734bfddcc
Add Compand methods to Color
This will eventually replace the PixelOperations methods.
Former-commit-id: a1058efb148c3fee54c69000698c96ade0c99c4f
Former-commit-id: 3704335fe924758d8d615ddc377f06b061308f0b
Former-commit-id: cb03cf38dab552cf2677fcfd8396f19906b80f1d
11 years ago
James Jackson-South
795c78ff8f
Fix Bgra32.ToString()
Former-commit-id: c254e98d59d28aaf84fef26734af28a8c1d2ab9b
Former-commit-id: a0a1615e1d6f0c6197da20834678d84cf3cdfccc
Former-commit-id: f0aea6fd0f1ee89c00f6fb3fd6ca9161adc8c632
11 years ago
James Jackson-South
c7cfcb2088
Filters now use correct color struct.
Former-commit-id: e999c5105a11df9168b1c2be0023aae2c98509d4
Former-commit-id: 5b95d6d0e7cf572f40d4c27580e3a6f0cecd238b
Former-commit-id: ec29dd84ec9f1b8d4d1a70a33c06f77d4b5b65d4
11 years ago
James Jackson-South
c371786f29
Wire up Bgra32 to match others
Former-commit-id: 8b6bce6aa5c26d810ad557b12ac84d8aa35a97b6
Former-commit-id: 847b8682accaba05c9a9ba4de2e0a09ceb10f86d
Former-commit-id: 172f1626aeaf5bfae3be063e174f9a77e3433903
11 years ago
James Jackson-South
f5bfad0217
Color to YCbCr conversion
Former-commit-id: f629f8d2a7660cc80b5be1252717faee05fac091
Former-commit-id: 68e2a4abfef0be9219fa9bfce1810c0b2bf609ac
Former-commit-id: b08ed48c5475f1e122cecc956e4f25f8cb46d4c3
11 years ago
James Jackson-South
fe5735507b
Color to CMYK conversion
Former-commit-id: be686be849ba8b99cecb3e9188c7d62cff015a2a
Former-commit-id: 832c449448d72e536b546493ff5a3f045f6b60f4
Former-commit-id: e73973e1db53ab8c7f626b7720d74922810fc674
11 years ago
James Jackson-South
789a3e81a1
Color to HSV conversion
Former-commit-id: ae347b3be2b3baceb645a41f3c508da99ef0157a
Former-commit-id: 76a3fc45e4e3a2286be1df783b03247391548130
Former-commit-id: 40972196f8a502afc4843c27be2b5ff2e95daf3c
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
3a1b926b16
Switch over to new Color struct as default.
Former-commit-id: 36ee757ac11c4a801317a501ff723424c2cb37ce
Former-commit-id: d2c80a5c23eb7dbc38f4384ea5c9497d48582fdf
Former-commit-id: 02e23e7442f61e89f3e2d903be05f11ecce509c7
11 years ago
James Jackson-South
6c6f99876a
Add equality operators to Color
Former-commit-id: f3fcba3beea06add26d444ec3901f335e9ed4be8
Former-commit-id: 53d1384beec06442949f63977e925249f29ed44b
Former-commit-id: 9aa082422225046361a153bc299a9f2794311165
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
6a91cc02f4
Add CMYK
Former-commit-id: a4c7eb73821870766ed4e40b63b942f8333e9088
Former-commit-id: f7ce24745b68fd67dfd01f89d9dbc2235c6ef573
Former-commit-id: 0443af7d07ec788618550c05d68ebf530aea9c37
11 years ago
James Jackson-South
a8bd09ddac
Cleanup implicit operators
Former-commit-id: 32778027aa323d13eb7889099e7a9f3c81e830a9
Former-commit-id: de756ae4ea95b20120cea8e91300b0026684c5ba
Former-commit-id: 4509569039b8c45479b9f7cd99f2bba9583d0901
11 years ago
James Jackson-South
64b35afbbc
Stylecop fixes
Former-commit-id: 1b0ef96b06ffe4ed4bcee91a237b5b3f1cd53cde
Former-commit-id: a0c65ac3f0b7e1029c7344e045e8cfba0d67d6cb
Former-commit-id: b81dcea8e7c8fd616816f2842b095d792afb1c0f
11 years ago
James Jackson-South
1e278b346b
Fix HSV/BGRA conversions.
Former-commit-id: a22279f666d6f38b556dd9a3b73e85ea418f7472
Former-commit-id: e90e5834a109edda3753adb08af33ade2d7939ba
Former-commit-id: 4289d43d1bab77976145596cc6e97f6ef8c14f34
11 years ago
Yufei Huang
30e0684611
Make YCbCr.(Y/Cb/Cr) and Hsv.(H/S/V) a plan field to make color manipulations a bit faster
Former-commit-id: cc64a3b7498c57f3ac5e2b0ab5e59626b6e95e9c
Former-commit-id: d199172432d36258d518faf531aa214c28543bc8
Former-commit-id: b8e0ea3874620340a0c7c7a3e85630dc45e7e23d
11 years ago
James South
1820fab58e
Add HSV color
Former-commit-id: aa9f4f20fb7cd0ba3297ab247581a02eac211523
Former-commit-id: e18df72d8d21d883cdae32f8b22f6b3247904c55
Former-commit-id: 7f4ef56db14333b0ff69709b6fe792793b8c2eae
11 years ago
James South
9f3603ffd3
Update to c#6 syntax, make structs immutable
Former-commit-id: 422cca4d32fcde728b090058088408d56fd4cbb0
Former-commit-id: 8d29aadde9a6b84d9d873b14142907e8228da4cc
Former-commit-id: 79aba44ef77760b6d58bfa7cdaf59060c6041be5
11 years ago
James South
0852c4c66c
Rename Colors, Begin Gif encoder
Former-commit-id: b08ac8597fa0f3ee4025b2a8814b34dd008c5291
Former-commit-id: 9bb7361434f7c87ed463a67c52b563c0d0b1b72b
Former-commit-id: c8fa576e7a251a9a4954c6b605ef4eea4104368e
11 years ago
James South
4950a4a594
Add YCbCrColor and intial encoder tests
Former-commit-id: 8311678740ba5aa9850bd6a997064a035d547621
Former-commit-id: 8da6d5c16f7cbf24b0455bae6647eab2b36c2c9d
Former-commit-id: 2724d1676d465cd523808232690e4e3035721e7c
11 years ago
James South
2dd2ea566f
Added web compatible hex overload.
Former-commit-id: f77be6bc3a0f72c6c8837793801e122a0b2b113b
Former-commit-id: aef161da11ecf0b4e691e3f820839ca768e40759
Former-commit-id: e78951c909777df6a2ce651b1a1995441776b54e
11 years ago
James South
90f1a5670e
Adding ImageBase and Color
Former-commit-id: fff521c60d912265f2205767f7897fd93fcf5236
Former-commit-id: eab563526f7b5dacba85fff55bbfa1351871f629
Former-commit-id: 483659bc93aad30d93a5e523fbe9fda7bffe30c0
11 years ago