2

Given that I have the array of points,

{{680*4, 509*4}, {739*4, 622*4}, {644*4, 741*4}, {606*4, 
  856*4}, {749*4, 474*4}, {977*4, 542*4}, {601*4, 481*4}, {584*4, 
  604*4}, {866*4, 667*4}}

what would be the best way to draw all the possible lines between this set of points and overlay them onto an image?

March Ho
  • 649
  • 5
  • 15

1 Answers1

8
array = {{680*4, 509*4}, {739*4, 622*4}, {644*4, 741*4}, {606*4, 
   856*4}, {749*4, 474*4}, {977*4, 542*4}, {601*4, 481*4}, {584*4, 
   604*4}, {866*4, 667*4}};

pic = ImageResize[ExampleData[{"TestImage", "Lena"}], {4000}];


Show[{
  pic,
  Graphics[{Yellow, Line@Subsets[array, {2}] }]
  }, ImageSize -> 400]

enter image description here

Kuba
  • 136,707
  • 13
  • 279
  • 740