From: Walter Roberson on 8 Jun 2010 15:08 alfann wrote: > Please help me for it. What is a "chain" for your purposes? For example, X_X_X_X_ _X_X_X_X Do the X's form a "chain"? Or is chain restricted (as in your example) to cases where there is a horizontal or vertical connection of components, XX_XXX _XXX__ Or is a chain restricted and not allow to go "backwards"? If the code were to detect a "branch", then would that be a signal that the line being followed is not suitable? _XX? XX_? __X? could the code stop looking to the right as soon as it saw the fork on the grounds that your valid chains never fork? Or would the code have to consider all forks in case one of them eventually leads to the other side? To confirm, this next should _not_ be a chain of X's because it does not span horizontally or vertically? _X___ _XXXX _____ but if the rightmost X were to be down one then it would be? > waiting for you. That's not a good idea: I have my own work to do, and I don't always have feasible access to Matlab.
From: dpb on 8 Jun 2010 15:08 dpb wrote: .... > There are some shortcuts that can negate a solution ... Oh, just another observation fwiw...locations at which diff() returns -1 are breakpoints... --
First
|
Prev
|
Pages: 1 2 Prev: extract data from image-histogram as two x,y-data Next: exist() for a substructure |