Hello everyone, this is my first post so correct me if i take the wrong approach.

Long story short, i want to make an arrow from each centroid to each center of mass, but i cannot draw a single arrow using the stored variables from the table.

I have an image composed of cells in two channels, one for nuclei (DAPI-DNA) other for cytoplasm (Tubulin or gamma tubulin). I have found the way to get approximate selections of every cell, that i managed to get into the ROI manager using the nuceli image. By measuring the obtained ROIs on the Tubulin image i got the coordinates of the centroid and center of mass , which gives me the â€ścenter of the nucleiâ€ť and the â€śbrightest spot in tubulinâ€ť, From this simple set of data which contains a results table containing X,Y,(centroid) XM, YM (center of mass) for each ROI i simply want to draw an arrow from each centroid (nucleus) to the Center of mass (tubulin bright spot). Sadly i cannot draw a single arrow using coordinates from the results table, and i dont manage to understand where i am failing,

I will show you my â€śprogressâ€ť in the macro, plz help ! the first part is the 1 arrow draw try, the sencond part would be the attempt at making all the arrows

Yours Sincerely, Martin

//Arrow 115

x = getResult(â€śXâ€ť, 115-1);

y = getResult(â€śYâ€ť, 115-1);

xm = getResult(â€śXMâ€ť, 115-1);

ym = getResult(â€śYMâ€ť, 115-1);

print(x, y, xm, ym);

makeArrow(x, y, xm, ym, â€śnotchedâ€ť);

Roi.setStrokeWidth(2);

Roi.setStrokeColor(â€śwhiteâ€ť);

//for (i = 0; i < nResults; i++) {

// x = getResult(â€śXâ€ť, i-1);

// y = getResult(â€śYâ€ť, i-1);

// x = getResult(â€śXMâ€ť, i-1);

// y = getResult(â€śYMâ€ť, i-1);

// makeArrow(x, y, xm, ym, â€śnotchedâ€ť);

//Roi.setStrokeColor(â€śwhiteâ€ť);

//}

//run(â€śSelect Noneâ€ť);