Hello all.
I have a sketch in which use blobdetection to capture the shape of a person, using a camera. i think because blobdetection capture the blobs in any position, when draw the vertex, some lines are drawn erratically, and some edges are joined widely separated , and looks bad. i try to calculate the distance between the edgeVertex of the current blob and previous blob, so that if the result would be greater than 1 for example, not define a vertex, didnt work..
here the code for define the shape blobs:
for (int n=0 ; n < cantidad_blobs ; n++) //runs stains cantidad=amount
{
unaMancha = manchas.getBlob( n ); //returns the n stain (mancha)
beginShape();
// recorro los puntos para generar el contorno
cantidad_vertices = unaMancha.getEdgeNb(); //amount of vertex
for( int m = 0 ; m < cantidad_vertices; m ++){
EdgeVertex desde = unaMancha.getEdgeVertexA( m ); //from
EdgeVertex hasta = unaMancha.getEdgeVertexB( m ); //until