matlab image processing- line passing through 2 points extending beyond the x1,y1 coordinate -


i have problem solve in matlab. have 2 points a[x1,x2] , b[y1,y2] of particles in image. want plot line between 2 points , extend beyond x1,y1 coordinate alone.

i later check intersects.this tell me particle originates. there simple code this?

thank you

regards

avinash

you should narrow down problem bit, i'll suggest creating c point in same line , b, , far wish (say, k times distance between , b); plot line between c , b.

xc=xa+k*(xa-xb); yc=ya+k*(ya-yb); 

as finding intersection (if line), can solve on paper quite implement on matlab.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -