View Single Post
  #18   Spotlight this post!  
Unread 22-05-2005, 18:58
ZZII 527's Avatar
ZZII 527 ZZII 527 is offline
"Scale Electric Vehicle"
AKA: Shane Colton
FRC #0097
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Cambridge, MA
Posts: 366
ZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond repute
Send a message via AIM to ZZII 527
Re: pic: FIRST mosaic

Quote:
Originally Posted by Greg Marra
I don't think it would be that big of a coding nightmare. Calculate the average pixel color of the piece you're trying to match, then shift each pixel in the image you're matching into it a certain percent towards what that color is. You just need to average out the two RGB values.
Yea it wouldn't be that bad. The trick to it is not adjusting pixel-by-pixel, because that would be cheating. It would be like blending it with the original in photoshop. The non-cheating (that is still debatable) way to do it, I think, is by adjusting the color properties of whole images to match the segment of the large image more closely. Most photomosaic programs do this, or at least have it as an option. This way, your code still needs to be somewhat good at matching colors and shapes, you are just making up for a small image selection. The code is still not too ugly: compare average colors on an image-by-image basis, rather than a pixel-by-pixel basis. I'm going to see if I can collect more images, first, because that gives a wider color selection without any modification to the pictures themselves. But color shifting, even image-by-image, is certainly not impossible to code. I might give it a shot...or you can!
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS

Last edited by ZZII 527 : 22-05-2005 at 19:09.
Reply With Quote