vanessa-king / UBC_LAIR

Collection of standard analysis functions used in the LAIR
2 stars 1 forks source link

Altered x,y in function createLineSegmentMask #135

Closed Plswearpants closed 5 months ago

Plswearpants commented 5 months ago

For function "createLineSegmentMask," line 54: mask(y1, x1) = 1 Why did you alter the x and y in the mask? Is it to make it aligned with the data? Or is it a typo?

m-altthaler commented 5 months ago

I looked into it and I think you're describing an outdated version of the function. (It uses Bresenham's line algorithm) but that is not the latest version I made. I'll update to the new version