Login  Register

Re: how to mark single pixel in a overlay

Posted by Volker Baecker on Jan 07, 2016; 1:32pm
URL: http://imagej.273.s1.nabble.com/how-to-mark-single-pixel-in-a-overlay-tp5015334p5015337.html

You can do it with a rectangular selection as well:

makeRectangle(x, y, 1, 1);
Overlay.addSelection;
run("Select None");

Volker


> Hello, maybe you could use
>
> makePoint(x, y); Overlay.addSelection; run("Select None");
>
> to add a point selection to the overlay.
>
> Volker
>
>
> Jeremy Adler:
>> I am want to use the overlay to mark a single pixel in an image
>> that has been zoomed to show individual pixels - within a macro.
>>
>> But I cannot see how to mark a single pixel in the overlay.
>> Overlay.drawRect   marks an area of 2x2 pixels centred on my
>> target pixel but 1x1 Overlay.drawLine  with the two positions set
>> the same, marks a single pixel offset
>>
>> I can mark a single pixel using the ROI manager and then move it
>> and convert it to an overlay, but this seems unduly cumbersome,
>> is there a better way of marking single pixels in a overlay ?
>>
>>
>> Dr Jeremy Adler Senior res engineer BioVis Dag Hammarskjölds väg
>> 20 Uppsala Universitet,  752 37 Uppsala ,Sweden
>>
>>
>>
>> +46 70 1679349
>>
>> http://www.biovis.uu.se
>>
>>
>>
>>
>> -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
> -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html