Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Color information in images?
Well, I've stumbled across something on accident... and I'm sure there's
a method that takes advantage of this; however, to recreate my steps...
do the following (assuming you have Adobe Photoshop):

1] Open a colored image.
2] Select and copy the colored image, and paste it into a new window
within Photoshop (so now you have two images open).
3] Convert one of the images to greyscale, then convert back to RGB
mode.  This will result in one of the images in 256 greyscale (but you
need to put the mode back to RGB afterwards, even though the color won't
reappear).
4] On the color image... resize to about 1/10 the size.  For example, if
you have a 100x100 images... resize to 10x10.
5] Resize the color image again... back to the original 100x100 (or your
dimensions) size.  You'll notice it's REALLY blurred.  That's alright!
6] Select and copy the greyscaled (in RGB) image and paste it over the
blurred colored image.
7] Right-click on the greyscaled layer and select "Blending Options" to
open the "Layer Style" window.
8] Right on this page, you'll see a box labeled "General Blending" at
the upper right section.  Take the "Opacity" slider and adjust it to
about 75%.  Now, click "Okay".
9] Flatten the image by going to the Layer menu option in the Adobe
Photoshop menu.
10] Press Ctrl+U to bring up the "Hue/Saturation" box.  Now, set the
saturation to 75 (or whatever you adjusted the "Opacity" slider value to).

If you did this right, then you should have an image that appears
similar (lossy) to the original colored-image (except that you recreated
it using only a greyscaled version, and a SEVERELY reduced colored
version).

So, with this in mind... is it accurate to assume that the greyscale
acts as a luminance map to each pixel, and since the human eye is more
susceptible to this, you can remove alot of the colored information
(which is what we did by resizing the colored layer to 1/10 the size and
resizing it back)?

Report this thread to moderator Post Follow-up to this message
Old Post
Eric D. Brown
10-17-04 01:55 AM


Re: Color information in images?
This is pretty much how jpeg , or colour tv works. The eye
is a lot less sensitive to detail in chrominance than in luminence.

"Eric D. Brown" <nospam@nowhere.com> wrote in message
news:10n3178n0b5uid7@corp.supernews.com...
> Well, I've stumbled across something on accident... and I'm sure there's
> a method that takes advantage of this; however, to recreate my steps...
> do the following (assuming you have Adobe Photoshop):
>
> 1] Open a colored image.
> 2] Select and copy the colored image, and paste it into a new window
> within Photoshop (so now you have two images open).
> 3] Convert one of the images to greyscale, then convert back to RGB
> mode.  This will result in one of the images in 256 greyscale (but you
> need to put the mode back to RGB afterwards, even though the color won't
> reappear).
> 4] On the color image... resize to about 1/10 the size.  For example, if
> you have a 100x100 images... resize to 10x10.
> 5] Resize the color image again... back to the original 100x100 (or your
> dimensions) size.  You'll notice it's REALLY blurred.  That's alright!
> 6] Select and copy the greyscaled (in RGB) image and paste it over the
> blurred colored image.
> 7] Right-click on the greyscaled layer and select "Blending Options" to
> open the "Layer Style" window.
> 8] Right on this page, you'll see a box labeled "General Blending" at
> the upper right section.  Take the "Opacity" slider and adjust it to
> about 75%.  Now, click "Okay".
> 9] Flatten the image by going to the Layer menu option in the Adobe
> Photoshop menu.
> 10] Press Ctrl+U to bring up the "Hue/Saturation" box.  Now, set the
> saturation to 75 (or whatever you adjusted the "Opacity" slider value to).
>
> If you did this right, then you should have an image that appears
> similar (lossy) to the original colored-image (except that you recreated
> it using only a greyscaled version, and a SEVERELY reduced colored
> version).
>
> So, with this in mind... is it accurate to assume that the greyscale
> acts as a luminance map to each pixel, and since the human eye is more
> susceptible to this, you can remove alot of the colored information
> (which is what we did by resizing the colored layer to 1/10 the size and
> resizing it back)?



Report this thread to moderator Post Follow-up to this message
Old Post
Pat
10-17-04 01:55 AM


Re: Color information in images?
Hi,

> Well, I've stumbled across something on accident... and I'm sure there's
> a method that takes advantage of this; however, to recreate my steps...
> do the following (assuming you have Adobe Photoshop):

/* snip */

> So, with this in mind... is it accurate to assume that the greyscale
> acts as a luminance map to each pixel, and since the human eye is more
> susceptible to this, you can remove alot of the colored information
> (which is what we did by resizing the colored layer to 1/10 the size and
> resizing it back)?

This is not at all an surprise. In fact, color subsampling is a frequent
lossy image compression technique. Consider color TV as the most prominent
example.

So long,
Thomas

Report this thread to moderator Post Follow-up to this message
Old Post
Thomas Richter
10-18-04 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Compression archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:57 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.