Click here to Skip to main content
16,004,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# serial port Pin
aniarun15-Dec-09 17:24
aniarun15-Dec-09 17:24 
GeneralRe: C# serial port Pin
Roger Wright15-Dec-09 18:28
professionalRoger Wright15-Dec-09 18:28 
GeneralRe: C# serial port Pin
aniarun15-Dec-09 18:52
aniarun15-Dec-09 18:52 
GeneralRe: C# serial port Pin
aniarun16-Dec-09 13:18
aniarun16-Dec-09 13:18 
QuestionTopic For Imagine Cup Pin
mwaqas199014-Dec-09 12:38
mwaqas199014-Dec-09 12:38 
AnswerRe: Topic For Imagine Cup Pin
Richard MacCutchan14-Dec-09 23:02
mveRichard MacCutchan14-Dec-09 23:02 
GeneralRe: Topic For Imagine Cup Pin
mwaqas199015-Dec-09 12:19
mwaqas199015-Dec-09 12:19 
QuestionData structure advice Pin
robertwaw14-Dec-09 10:45
robertwaw14-Dec-09 10:45 
Hi,

I am attempting to create a simple region growing image program. The idea is that these regions will become "nodes" for the next part of my project. I just need a bit of advice of a good easy way to store the pixel data.

At the moment I have a Class called PixelData that holds x/y location, pixel color value and a Label ("F"- free/ "A"-allocated etc) of all the pixels in a grayscale image. This is all held by a List<PixelData>. I have a node class that will hold the pixels that it consumes.

So the idea is that a random seed point will be selected, and that the PixelData list will change that pixel lable to "A" for allocated and also add it to the node class. Over time lots of pixels in the PixelData list will become Allocated by the node, and the node class's list of pixels will grow.

This is the first way that came to me. Can anyone recommend a better or simpler way? Speed isnt a necessity at this stage, I just want to get something working.

Regards.
AnswerRe: Data structure advice Pin
Dr.Walt Fair, PE14-Dec-09 11:43
professionalDr.Walt Fair, PE14-Dec-09 11:43 
AnswerRe: Data structure advice [modified] Pin
Luc Pattyn14-Dec-09 11:46
sitebuilderLuc Pattyn14-Dec-09 11:46 
QuestionService does not start [modified] Pin
Jordanwb14-Dec-09 10:45
Jordanwb14-Dec-09 10:45 
AnswerRe: Service does not start Pin
Migounette14-Dec-09 11:43
Migounette14-Dec-09 11:43 
GeneralRe: Service does not start Pin
Jordanwb14-Dec-09 12:12
Jordanwb14-Dec-09 12:12 
GeneralRe: Service does not start Pin
Migounette14-Dec-09 12:41
Migounette14-Dec-09 12:41 
GeneralRe: Service does not start Pin
Jimmanuel14-Dec-09 13:15
Jimmanuel14-Dec-09 13:15 
GeneralRe: Service does not start [modified] Pin
Jordanwb14-Dec-09 17:15
Jordanwb14-Dec-09 17:15 
GeneralRe: Service does not start Pin
Jimmanuel15-Dec-09 1:01
Jimmanuel15-Dec-09 1:01 
GeneralRe: Service does not start Pin
Jordanwb15-Dec-09 2:18
Jordanwb15-Dec-09 2:18 
GeneralRe: Service does not start Pin
Jimmanuel15-Dec-09 3:26
Jimmanuel15-Dec-09 3:26 
GeneralRe: Service does not start [modified] Pin
Jordanwb15-Dec-09 5:31
Jordanwb15-Dec-09 5:31 
GeneralRe: Service does not start Pin
Jimmanuel15-Dec-09 6:33
Jimmanuel15-Dec-09 6:33 
GeneralRe: Service does not start Pin
Jordanwb15-Dec-09 7:17
Jordanwb15-Dec-09 7:17 
QuestionPerhaps a threading problem? Pin
George Quarton14-Dec-09 10:12
George Quarton14-Dec-09 10:12 
AnswerRe: Perhaps a threading problem? Pin
Luc Pattyn14-Dec-09 11:56
sitebuilderLuc Pattyn14-Dec-09 11:56 
GeneralRe: Perhaps a threading problem? Pin
George Quarton14-Dec-09 12:17
George Quarton14-Dec-09 12:17 

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.