LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 545 users online 186372 members 800 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
6 online / 19 MPM
Fresh Topics
  LiveWire / Teen Forums / The Intellectual Forum / Viewing Topic

Questions for smart folks
Replies: 10Last Post Oct. 15 9:12pm by medjai
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( sakurag )


Soothsayer

Patron
Reply
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 | 575 Days Active
Join to learn more about sakurag Washington, United States | Straight Male | 2254 Posts | 10222 Points
jamesish


Heaven

Sustainer
Support Leader
Tech Support Leader
Reply
You could always use the magic wand.  I didn't break any rules, did I?

-------
|Myspace|

3:23 pm on Oct. 8, 2008 | Joined Jan. 2008 | 221 Days Active
Join to learn more about jamesish South Carolina, United States | Metrosexual Male | 16049 Posts | 24842 Points
allsmiles


Soothsayer

Ad Free
Reply
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.

3:58 pm on Oct. 8, 2008 | Joined Aug. 2007 | 366 Days Active
Join to learn more about allsmiles England, United Kingdom | Male | 6465 Posts | 12449 Points
sadnessness


Wealthy Hobo
Reply
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.

11:23 am on Oct. 9, 2008 | Joined Feb. 2008 | 99 Days Active
Join to learn more about sadnessness England, United Kingdom | Straight Female | 3257 Posts | 4403 Points
whoami111


Visionary
Reply
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

-------
My Ultimate goal in life is to become what I am fully capable of.

9:41 am on Oct. 10, 2008 | Joined Sep. 2007 | 317 Days Active
Join to learn more about whoami111 California, United States | Straight Male | 6355 Posts | 9898 Points
( sakurag )


Soothsayer

Patron
Reply
Quote: from whoami111 at 9:41 am on Oct. 10, 2008

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

It's mathematics, actually...

-------
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.


10:26 am on Oct. 10, 2008 | Joined Oct. 2002 | 575 Days Active
Join to learn more about sakurag Washington, United States | Straight Male | 2254 Posts | 10222 Points
Feminawesome


Quality Control Engineer
Reply
Go to the paint program. CTRL + A. CTRL + C. Create a new document. CTRL + V. CTRL + A. Inverse colors.

You now have a black triangle~

Done~

-------
«If I can stop one heart from breaking,
I shall not live in vain.» -Emily Dickinson


2:32 pm on Oct. 11, 2008 | Joined July 2008 | 38 Days Active
Join to learn more about Feminawesome Massachusetts, United States | GLBT Ally Female | 475 Posts | 903 Points
allsmiles


Soothsayer

Ad Free
Reply
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.

11:14 am on Oct. 12, 2008 | Joined Aug. 2007 | 366 Days Active
Join to learn more about allsmiles England, United Kingdom | Male | 6465 Posts | 12449 Points
tell me again


Guru

Patron
Reply
What the hell, you interview really, really smart people? What do you actually do? I hope your questions are better than this one, because this question isn't clear in what it's asking.

But I presume it's to do with contrast - wherever colour values change, there'd be a dot, determining the "edge".


6:36 pm on Oct. 12, 2008 | Joined June 2006 | 588 Days Active
Join to learn more about tell me again Australia | Label Free Female | 9081 Posts | 21902 Points
medjai



Patron
Support Leader
Reply
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?

-------
Who dares wins. - Special Air Service


9:10 pm on Oct. 15, 2008 | Joined Nov. 2003 | 1325 Days Active
Join to learn more about medjai California, United States | Straight Male | 12710 Posts | 30193 Points
medjai



Patron
Support Leader
Reply
Oh, and my paint program would use vectors, eliminating resolution dependency.

-------
Who dares wins. - Special Air Service

9:12 pm on Oct. 15, 2008 | Joined Nov. 2003 | 1325 Days Active
Join to learn more about medjai California, United States | Straight Male | 12710 Posts | 30193 Points
Single page for this topic Email Print Favorite

Quick Reply

Prereq. Intellectual Test
You are signed in as our guest.

Looking for something else?
 

  LiveWire / Teen Forums / The Intellectual Forum / Viewing Topic