Click here to Skip to main content
15,888,803 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to convert html to image using webbrowser? Pin
DoctorMick9-Jul-09 5:05
DoctorMick9-Jul-09 5:05 
AnswerRe: How to convert html to image using webbrowser? Pin
0x3c09-Jul-09 6:33
0x3c09-Jul-09 6:33 
GeneralRe: How to convert html to image using webbrowser? Pin
jacekzorek9-Jul-09 23:42
jacekzorek9-Jul-09 23:42 
QuestionEdge Detection in image to measure size [modified] Pin
shultas9-Jul-09 3:36
shultas9-Jul-09 3:36 
AnswerRe: Edge Detection in image to measure size Pin
Sun Rays9-Jul-09 3:49
Sun Rays9-Jul-09 3:49 
GeneralRe: Edge Detection in image to measure size Pin
shultas9-Jul-09 4:08
shultas9-Jul-09 4:08 
GeneralRe: Edge Detection in image to measure size Pin
Christian Graus9-Jul-09 4:29
protectorChristian Graus9-Jul-09 4:29 
GeneralRe: Edge Detection in image to measure size Pin
shultas9-Jul-09 4:54
shultas9-Jul-09 4:54 
First of all, your article series is AWESOME and I thank you for it as well as the help you've given me over the past few weeks!

I am wondering if this scenario would work. Your input would be greatly appreciated! The camera is set to produce a 1024x768 image. The camera looks down onto a table that is 10' by 10' (100 Square Feet). I position the camera so that the image it captures exactly covers this table. The table is painted a bright orange color (R-255,G-162,B-59). (Now I'm just trying to work this out in my head, I don't know if this will work, but what I am thinking is...)

The camera is looking on the table, so we know that the 1024x768 image that the camera is going to produce will cover exactly 100 Square Feet, every time. So, a grand total of 786,432 pixels. 100 Square Feet would be 30,480 sq millimeters. Each pixel would equate to approximately 0.03875732421875 of a millimeter. (I don't know if this is correct or logical or would work I'm just thinking out loud).

I open up the image. I walk through the image using GetPixel, pixel by pixel, and check the RGB value of that pixel. If it is close to 255/162/59, i disregard it. Any other color would add the 0.038... number to the global count. After it is all said and done, I should have a value of how many millimeters in the entire space is "in use" and be able to calculate the total area of the wood or stones that are currently on the table.

Basically a family member contacted me. He sells stone (they may be mosaic, so not necessarily always rectangular). I'm trying to think of a way to take pictures of the stone as he puts them into a bin in order to calculate the square footage on those stones that he is selling (ie, he sold 250 SQ feet to someone "by eye" and the person actually got out a measuring tape and measured all the pieces and realized there was only 240 SQ feet and had a hissy). So I was thinking if this method of analyzing an image pixel by pixel, when you know exactly how big the area is every time of that image, would work.

Thanks much for the response!!
GeneralRe: Edge Detection in image to measure size Pin
OriginalGriff9-Jul-09 5:09
mveOriginalGriff9-Jul-09 5:09 
QuestionWMI/ADO for Microsoft Exchange Server 2010 Pin
tom groezer9-Jul-09 3:19
tom groezer9-Jul-09 3:19 
QuestionTesting for current PictureBox.Image Pin
kanchoette9-Jul-09 3:16
kanchoette9-Jul-09 3:16 
AnswerRe: Testing for current PictureBox.Image Pin
Christian Graus9-Jul-09 3:18
protectorChristian Graus9-Jul-09 3:18 
AnswerRe: Testing for current PictureBox.Image Pin
Sun Rays9-Jul-09 3:39
Sun Rays9-Jul-09 3:39 
GeneralRe: Testing for current PictureBox.Image Pin
Christian Graus9-Jul-09 3:54
protectorChristian Graus9-Jul-09 3:54 
GeneralRe: Testing for current PictureBox.Image Pin
kanchoette9-Jul-09 4:27
kanchoette9-Jul-09 4:27 
GeneralRe: Testing for current PictureBox.Image Pin
Luc Pattyn9-Jul-09 9:31
sitebuilderLuc Pattyn9-Jul-09 9:31 
AnswerRe: Testing for current PictureBox.Image Pin
0x3c09-Jul-09 5:40
0x3c09-Jul-09 5:40 
QuestionC# Rijndael Encrypt and Pel Crypt::CBC Pin
DanielLC9-Jul-09 3:13
DanielLC9-Jul-09 3:13 
QuestionGraphics.DrawImageUnscaled blurry Pin
Huisheng Chen9-Jul-09 3:02
Huisheng Chen9-Jul-09 3:02 
AnswerRe: Graphics.DrawImageUnscaled blurry Pin
Christian Graus9-Jul-09 3:17
protectorChristian Graus9-Jul-09 3:17 
GeneralRe: Graphics.DrawImageUnscaled blurry Pin
Huisheng Chen9-Jul-09 3:53
Huisheng Chen9-Jul-09 3:53 
QuestionToUnicodeEx and dead keys inside system wide hooks Pin
RevengerPT9-Jul-09 2:52
RevengerPT9-Jul-09 2:52 
Questioncash register. Pin
solomonope9-Jul-09 2:03
solomonope9-Jul-09 2:03 
AnswerRe: cash register. Pin
Christian Graus9-Jul-09 2:13
protectorChristian Graus9-Jul-09 2:13 
GeneralRe: cash register. Pin
solomonope9-Jul-09 3:43
solomonope9-Jul-09 3:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.