Login  Register

how to set a color pixel from a macro?

Posted by Franklin Shaffer-2 on Oct 07, 2014; 3:44pm
URL: http://imagej.273.s1.nabble.com/Thresholder-in-headless-macro-mode-results-in-NullPointerException-tp5009940p5009943.html

I'm reading values of color pixel from an image and converting the hex value to color values to r, g , b.  
 
I want to change the r,g,b values then write the new values to the pixel from a macro.
 
I can make it work with the Fill tool, but it is extremely slow.
 
Is there a better way to change the value of a color pixel from a macro?
 
Thanks,
Frank Shaffer
 
 
Senior Research Engineer
USDOE National Energy Technology Laboratory
Office of Research & Development
Mail Stop 84-202
626 Cochran's Mill Road
Pittsburgh, PA 15236
 
[hidden email]
Office:  412-386-5964
Cell:  724-970-7262

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