Click here to Skip to main content
15,890,506 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Find .56 from 19.56 Pin
CPallini22-May-07 0:23
mveCPallini22-May-07 0:23 
GeneralRe: Find .56 from 19.56 Pin
Jeffrey Walton5-Jul-07 16:48
Jeffrey Walton5-Jul-07 16:48 
AnswerRe: Find .56 from 19.56 Pin
zqueezy21-May-07 21:33
zqueezy21-May-07 21:33 
AnswerRe: Find .56 from 19.56 Pin
Giorgi Dalakishvili21-May-07 21:39
mentorGiorgi Dalakishvili21-May-07 21:39 
AnswerRe: Find .56 from 19.56 Pin
cmk22-May-07 20:13
cmk22-May-07 20:13 
AnswerRe: Find .56 from 19.56 Pin
Rilhas24-May-07 11:39
Rilhas24-May-07 11:39 
AnswerRe: Find .56 from 19.56 Pin
PIEBALDconsult20-Jun-07 17:29
mvePIEBALDconsult20-Jun-07 17:29 
QuestionVery simple edge detection. Pin
Genbox21-May-07 7:44
Genbox21-May-07 7:44 
Hi.

I have a multidimensional integer array that represents the colors of a image:
<br />
 0 0 1 0 0 0<br />
 0 0 1 0 0 0<br />
 0 1 0 1 0 0<br />
 0 1 0 1 0 0<br />
 0 0 1 0 0 0<br />
 0 0 1 0 0 0<br />


(in this case, white = 0 & black = 1)
This color map can vary in size, but I don't think that tributes to the solution here.
What I need is a edge detection that detects only the side of the black image;

<br />
 0 2 1 2 0 0<br />
 0 2 1 2 0 0<br />
 2 1 0 1 2 0<br />
 2 1 0 1 2 0<br />
 0 2 1 2 0 0<br />
 0 2 1 2 0 0<br />


2 = detected edge, 1 = black, 0 = white.

I was trying to traverse the hole color map, row by row, pixel by pixel on each side of the rectangle, and when a black color was found, the loop would break and save the position it was at, like this:

textureData[,] - Contains the color map.<br />
<br />
for (int x = 0; x < texture.Width; x++)<br />
 {<br />
  for (int y = 0; y < texture.Height; y++)<br />
  {<br />
   if (textureData[x, y] != 0)<br />
   {<br />
    edgePoints.Add(new Point(x , y));<br />
    break;<br />
   }<br />
  }<br />
 }


This works for finding one side, but i can't seem to make a loop for other sides. Please help me.
AnswerRe: Very simple edge detection. Pin
Luc Pattyn21-May-07 8:37
sitebuilderLuc Pattyn21-May-07 8:37 
GeneralRe: Very simple edge detection. Pin
Genbox21-May-07 8:43
Genbox21-May-07 8:43 
QuestionMinimal Distortion using 2 Homographys Pin
zqueezy20-May-07 19:38
zqueezy20-May-07 19:38 
QuestionPCM Audio question - Play sound files backwards? Pin
@largeinsd18-May-07 11:25
@largeinsd18-May-07 11:25 
AnswerRe: PCM Audio question - Play sound files backwards? Pin
Rilhas19-May-07 9:24
Rilhas19-May-07 9:24 
GeneralRe: PCM Audio question - Play sound files backwards? Pin
@largeinsd20-May-07 6:06
@largeinsd20-May-07 6:06 
AnswerRe: PCM Audio question - Play sound files backwards? Pin
Leslie Sanford20-May-07 18:35
Leslie Sanford20-May-07 18:35 
GeneralRe: PCM Audio question - Play sound files backwards? Pin
@largeinsd20-May-07 21:43
@largeinsd20-May-07 21:43 
GeneralRe: PCM Audio question - Play sound files backwards? Pin
Leslie Sanford21-May-07 3:56
Leslie Sanford21-May-07 3:56 
GeneralRe: PCM Audio question - Play sound files backwards? Pin
@largeinsd21-May-07 5:51
@largeinsd21-May-07 5:51 
GeneralRe: PCM Audio question - Play sound files backwards? Pin
Leslie Sanford21-May-07 5:58
Leslie Sanford21-May-07 5:58 
GeneralRe: PCM Audio question - Play sound files backwards? Pin
Luc Pattyn21-May-07 8:39
sitebuilderLuc Pattyn21-May-07 8:39 
GeneralRe: PCM Audio question - Play sound files backwards? Pin
Leslie Sanford21-May-07 8:42
Leslie Sanford21-May-07 8:42 
GeneralRe: PCM Audio question - Play sound files backwards? Pin
Luc Pattyn21-May-07 8:57
sitebuilderLuc Pattyn21-May-07 8:57 
GeneralRe: PCM Audio question - Play sound files backwards? Pin
Leslie Sanford21-May-07 9:22
Leslie Sanford21-May-07 9:22 
Questionplotting a graph using any equation like Y=a(1+sinX) Pin
Neo Andreson18-May-07 0:52
Neo Andreson18-May-07 0:52 
AnswerRe: plotting a graph using any equation like Y=a(1+sinX) Pin
Frank Kerrigan18-May-07 1:26
Frank Kerrigan18-May-07 1:26 

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.