|
Until you sign up you can't do much. Yes, it's free.
|
|
|
|
|
|
|
 | / / / Viewing Topic
|  |
|
|
Questions for smart folks |
|
|
|
Replies: 10 Last Post Oct. 15, 2008 9:12pm by medjai
|
|
|
|
|
( sakurag )
Soothsayer
Patron
|
So, in my day to day life I get to interview really, really smart people. I ask them some questions (usually to do with fun exciting topics), and they try to answer them for me. Now you all, being super smart.. I want to see if you can answer one of these question. Most people don't seem to get them right.. it bums me out. Maybe someone here will astound me: If you know the answer, just don't blurt it out.. let people who don't know solve it. Question: I have an image on my computer. It's got a black background and a white triangle in it. The image is stored in a bitmap, each pixel contains the color value. On your own, w/o a paint program, tell me how you would create an outline of this shape from the original image. Ie, how would your paint program go about doing this. For those of you who don't understand how a computer image looks like up close, think of like zooming in really close to a picture, things get kinda pixelated. that might help you out.
------- I've got spurs that jingle jangle jingle. As I go riding merrily along. And they sing, "Oh, ain't you glad you're single?" And that song ain't so very far from wrong.
|
9:01 am on Oct. 8, 2008 | Joined: Oct. 2002 | Days Active: 896 Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,887 | Points: 12,688
|
|
| |
|
|
|
|
 LiveWire Humor
|
|
hI jAMES
Just tell me it's OK to die
Sustainer
Support Leader
Tech Support Leader
|
You could always use the magic wand. I didn't break any rules, did I?
------- And I'm the Devil. Now kindly undo these straps.
|
|
|
allsmiles
Enlightened One
Patron
|
How the program, as opposed to the user and the UI? Presumably, it would start from the centre-most pixel and spiral outwards, switching the values of pixel pairs based on orientation from the previous pixel. This would generate a one line black triangle surrounded by a one line white triangle. Then you would just tell it to fill the centremost pixels with black until they encounter a black pixel in their direct vicinity. I dunno, sounds like how it would operate. I'm not all that good with image manipulation, only spent one lesson on it in physics.
------- When they leave me, they're all smiles. When they leave you, they're in tears.
|
|
|
sadnessness
Connoisseur
|
why does being smart mean we know all about computers and pixels? the actualy intellectual test was nothing to do with it either lol
------- dont wonder why im not smiling, wonder why you are.
|
|
|
whoami111
Soothsayer
|
Quote: from sadnessness at 11:23 am on Oct. 9, 2008
why does being smart mean we know all about computers and pixels? the actualy intellectual test was nothing to do with it either lol
QFT not all of us are computer geniuses
------- Anyone can make great ideas, but it does not make them a genius; true geniuses proves his ideas works.
|
9:41 am on Oct. 10, 2008 | Joined: Sep. 2007 | Days Active: 425 Join to learn more about whoami111 California, United States | Straight Male | Posts: 7,997 | Points: 12,336
|
|
| |
|
|
|
|
|
|
allsmiles
Enlightened One
Patron
|
That does not create the outline of a triangle. Also, everything but inverse colours was redundant.
------- When they leave me, they're all smiles. When they leave you, they're in tears.
|
|
|
|
|
medjai
Patron
|
Easy. Imagine a big ass grid. That's your bitmap potential image space and it's filled with a shitload of squares, each square can hold one color attribute and they ALL have the same shape attribute (a tiny square of space). So obviously a real smooth diagonal is impossible, instead it has to use an equation which determines a means to, using shading, create an optical illusion of a smooth and sharp image. I don't know the equation or algorithm that is used in the market programs I just know it must exist, they may even be proprietary and unique to each program. Either way, you fade out the 'bad' squares by using lighter shades of the color you are representing the triangle to be. Am I right?
------- O` tru apothecary! Thy drugs are quick. Thus with a kiss I die.
|
9:10 pm on Oct. 15, 2008 | Joined: Nov. 2003 | Days Active: 1,622 Join to learn more about medjai California, United States | Straight Male | Posts: 17,450 | Points: 40,455
|
|
| |
|
|
|
|
|
| Looking for something else?
|
|
|
|
|
|
 | / / / Viewing Topic |  |
|