- #1
alitas
- 7
- 0
Hi everybody !
I have a question about discrete integrals with contours. I want to integrate
the points that makes the contour of an image. When the contour is only one
curve it is easy I get the function in every point of the contour and I multiply
by the distance between two consecutive points.
But my problems y when this curve changes of topology so the contour
can be several contours inside, outside the other curve. So I wonder if I can use the
same method.
Example 1: I calculate the corresponding functions
of the elements in the position of the contour multiplyed
by the width between two consecutive points.
000000000000
000011111100
000100000100
000010111100
000001000000
My problem Example 2: It is when my contour is not a curve
with starting and ending if not particionates and becomes
more curves. Someone knows how to calculate the discrete
integral over the points 1, and 2??.
0000000000000
0000111111000
0000102220000
0000102222220
0000100001120
0000111111120
The problem can be arbitrary I just show a case to explain my
problem
Thank you very much
Sincerely
Esmeralda Ruiz
I have a question about discrete integrals with contours. I want to integrate
the points that makes the contour of an image. When the contour is only one
curve it is easy I get the function in every point of the contour and I multiply
by the distance between two consecutive points.
But my problems y when this curve changes of topology so the contour
can be several contours inside, outside the other curve. So I wonder if I can use the
same method.
Example 1: I calculate the corresponding functions
of the elements in the position of the contour multiplyed
by the width between two consecutive points.
000000000000
000011111100
000100000100
000010111100
000001000000
My problem Example 2: It is when my contour is not a curve
with starting and ending if not particionates and becomes
more curves. Someone knows how to calculate the discrete
integral over the points 1, and 2??.
0000000000000
0000111111000
0000102220000
0000102222220
0000100001120
0000111111120
The problem can be arbitrary I just show a case to explain my
problem
Thank you very much
Sincerely
Esmeralda Ruiz