Visually alter colormatrix with 25 slidebars, application included






2.42/5 (11 votes)
Jan 12, 2007
2 min read

34402

1229
Learn colormatrix inside and out, demo displays color matrix built after manipulation 25 slidebars
Introduction
please extract application to c:\xtremephoto
Project can work fromanywhere, but default photos are hard coded to c:\xtremephoto
I had a lot of help on this project, thanks to Michael Combs great article, I was inspired to create this tool so you can see exactly the impact of the color matrix on the color transform. This mini-app has 25 trackbars to control every aspect of matrix... this will not do negative however. It will control bars as (1-100)/100 giving a range of .01 to 1. Unfortunately I dont think trackbars can go negative, and I only had so much time.
Also includes a threshold and gama trackbar.
Also please install in default directory because there is NO error code either.
The app loads a foregrond and background image and allows overlays to test alpha transparencies. It also creates a third "Altered" image. This project was intended to help us all learn color matrix once and for all. It will allow you to load your own images as well.
The project shows the matrix array created so that you can enclude that in any project you might have, or and experiment on presets.
I know there are lots of things you'll be missing, but I believe the object of a learning tool for color matrix has been met.
I know you like to have the code, but there are code examples, I have provided some myself. The project I am working on makes it difficult for me to release code.
PS: 12/12/2007
There is another project puvlished by Joe Pardue with a similar approach which I didnt stumble on until today,
PPS: 12/12/2007
I removed some code that I was concerned about and substituted, and published code for project today. This code can be used freely and need not be stamped or marked in any way, the gray matrix was borrowed from Michael Combs article.
I did later add Negative: The Trackbars run 1-200 value, I set a translation table running from -1 to + 1 in .01 increments, the code translatetable(trackbar.value) allows trackbar equivalent of negative numbers. The published code has not been updated, mostly because this is a subform in my main project and I havnt had the time to extract it.