how to draw a set of point in spatial coordinate to image in pixel coordinate

1 view (last 30 days)
Hello forum member,
i have a problem on rewriting a set of spatial coordinate points (x,y) to image pixel.
i have set of x's and y's
x = [191.431708444558 192.927393026847 194.828972651949 197.174822057166 199.908202571338 202.903457139370 206.177608197143 209.174818102017 211.905387470657 214.217318520473 216.071254668065 217.327440541893 218.151674748791 218.857044448070 ]
and y =[186.639612623637 186.270348355477 185.938234207247 185.716153320142 185.572332195321 185.530587496359 185.468734549406 185.384546024686 185.402347728561 185.503443374078 185.614092272540 185.678315399370 185.696923201433 185.687161663092 ]
i want to write a white pixel in image with this coordinate but since it is in floating point its not works, and if i do ceil or floor on the data it create a disconnected white line.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!