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

C#

 
GeneralRe: Picture/Texture project Pin
fly9048-May-09 12:40
fly9048-May-09 12:40 
GeneralRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 12:44
Gabriel Hodgens8-May-09 12:44 
AnswerRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 13:53
Gabriel Hodgens8-May-09 13:53 
GeneralRe: Picture/Texture project Pin
MumbleB8-May-09 21:36
MumbleB8-May-09 21:36 
GeneralRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 22:17
Gabriel Hodgens8-May-09 22:17 
GeneralRe: Picture/Texture project Pin
fly9048-May-09 22:31
fly9048-May-09 22:31 
GeneralRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 22:50
Gabriel Hodgens8-May-09 22:50 
GeneralRe: Picture/Texture project Pin
fly9048-May-09 23:08
fly9048-May-09 23:08 
GeneralRe: Picture/Texture project Pin
Gabriel Hodgens8-May-09 23:14
Gabriel Hodgens8-May-09 23:14 
GeneralRe: Picture/Texture project Pin
MumbleB8-May-09 22:40
MumbleB8-May-09 22:40 
Questionprint button to print a control Pin
student19888-May-09 10:42
student19888-May-09 10:42 
AnswerRe: print button to print a control Pin
fly9048-May-09 10:47
fly9048-May-09 10:47 
GeneralRe: print button to print a control Pin
student19888-May-09 11:03
student19888-May-09 11:03 
GeneralRe: print button to print a control Pin
fly9048-May-09 11:11
fly9048-May-09 11:11 
Questionautomatic byte conversion? Pin
terradtc8-May-09 10:39
terradtc8-May-09 10:39 
AnswerRe: automatic byte conversion? Pin
Luc Pattyn8-May-09 12:06
sitebuilderLuc Pattyn8-May-09 12:06 
GeneralRe: automatic byte conversion? Pin
terradtc8-May-09 12:31
terradtc8-May-09 12:31 
GeneralRe: automatic byte conversion? Pin
Luc Pattyn8-May-09 12:44
sitebuilderLuc Pattyn8-May-09 12:44 
GeneralRe: automatic byte conversion? Pin
terradtc8-May-09 13:05
terradtc8-May-09 13:05 
GeneralRe: automatic byte conversion? Pin
Luc Pattyn8-May-09 13:25
sitebuilderLuc Pattyn8-May-09 13:25 
Questionreading pixel's value in an image Pin
wasifmuneer8-May-09 8:53
wasifmuneer8-May-09 8:53 
AnswerRe: reading pixel's value in an image Pin
molesworth8-May-09 9:05
molesworth8-May-09 9:05 
GeneralRe: reading pixel's value in an image Pin
Dan Neely8-May-09 9:27
Dan Neely8-May-09 9:27 
AnswerRe: reading pixel's value in an image Pin
Dave Kreskowiak8-May-09 9:14
mveDave Kreskowiak8-May-09 9:14 
AnswerRe: reading pixel's value in an image Pin
terradtc8-May-09 10:50
terradtc8-May-09 10:50 
You're actually thinking the wrong way, you should not compare the pixels to the ones of their neighbours because the stars can be bigger then x pixels.

The easiest way to do this is to convert the image to a binary image first. What you should do is calculate the average pixel value of the image and then creating a bool array of the same size of the image, anything higher then the average becomes true, anything lower becomes false. Then you'll want to do something like labelling to differentiate between different stars so you can cut them out or do whatever you need to do with them.

A tip in advance:
Don't use the getPixel and setPixel methods of the Bitmap, use the LockBits and UnlockBits functions, they are a lot faster..

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.