Logo Search packages:      
Sourcecode: javamorph version File versions  Download package

static void javamorph::CMorphOperator::triangle (  )  [inline, static, private]

Merge all points of a triangle.

Definition at line 154 of file CMorphOperator.java.

References javamorph::CTriangle::getWithins(), left_point, left_trafo, merge(), result_point, right_point, right_trafo, t_idx, and withins.

Referenced by run().

                                  {
        CTriangle result = CConfig.result_triangles.get(t_idx);
        /* Left transformation matrix. */
        left_trafo = CGeo.getTrafo(CConfig.left_triangles.get(t_idx), result);
        /* Right transformation matrix. */
        right_trafo = CGeo.getTrafo(CConfig.right_triangles.get(t_idx), result);
        /* For all target points. */
        withins = result.getWithins();
        for(Point p: withins){
            result_point = p;
            /* Transform left. */
            left_point = CGeo.getOrigin_(result_point, left_trafo);
            /* Transform right. */
            right_point = CGeo.getOrigin_(result_point, right_trafo);
            /* Merge both pixels. */
            merge();
        }   
    }


Generated by  Doxygen 1.6.0   Back to index