Hello 
I would like to calculate a weighted line integral. 
The integral is calculated by the cells that this lines trasverses (the small 
cells belong to  matrix (m*n) that represent the value that a specific area has.

I need to calculate the weights by finding out how much the line touches or 
impinges inside a cell.
The weight is less if a line just touches one of the four edges of a square and 
much more if it traverses inside the cell. I think there might be some function 
to calculate this in any image processing packages.
So far I could not find anything appropriate. 
Could you please help me with that?

I would like to thank you in advance for your help
Best Regards
Alex



      
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to