Hello,
I have set-up a quality control process to measure the brightness of an LED in terms of pixel values and finding the correction factor to convert it to brightness units. I have been using 'darktable' to apply certain modes to convert .CR2 images into greyscale and exported it to a 16-bit .tiff format to analyze in ImageJ. I have been manually going through the image one by one cropping it to remove any hot pixels and then measure the max pixel value from there. I am kinda new to using this program and need help writing up a macro to run this process in batch mode. The result I am expecting is an excel sheet containing the name of each file and the max pixel value for each image within that batch. Could anyone help me set this up? Thanks! -- Sent from: http://imagej.1557.x6.nabble.com/ -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Try using the macro recorder: plugins>macros>record... If you go
through your steps manually, you'll have a nice start to the batch code you need. Rob On 4/25/2019 11:33 AM, yongjoon91 wrote: > Hello, > > I have set-up a quality control process to measure the brightness of an LED > in terms of pixel values and finding the correction factor to convert it to > brightness units. I have been using 'darktable' to apply certain modes to > convert .CR2 images into greyscale and exported it to a 16-bit .tiff format > to analyze in ImageJ. > > I have been manually going through the image one by one cropping it to > remove any hot pixels and then measure the max pixel value from there. I am > kinda new to using this program and need help writing up a macro to run this > process in batch mode. The result I am expecting is an excel sheet > containing the name of each file and the max pixel value for each image > within that batch. Could anyone help me set this up? > > Thanks! > > > > -- > Sent from: http://imagej.1557.x6.nabble.com/ > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
You might also check out the DCRaw plugin for ImageJ, which should make it capable of opening CR2 files directly:
http://ij-plugins.sourceforge.net/plugins/dcraw/ I have not tested this myself but see no reason why it should not work as DCRaw is considered the standard tool for opening raw files using open source solutions. The other plugins hosted at ij-plugins.sourceforge.net work very well. Stein -----Original Message----- From: ImageJ Interest Group <[hidden email]> On Behalf Of Robert Baer Sent: 27. april 2019 18:13 To: [hidden email] Subject: Re: Batch image processing Try using the macro recorder: plugins>macros>record... If you go through your steps manually, you'll have a nice start to the batch code you need. Rob On 4/25/2019 11:33 AM, yongjoon91 wrote: > Hello, > > I have set-up a quality control process to measure the brightness of > an LED in terms of pixel values and finding the correction factor to > convert it to brightness units. I have been using 'darktable' to apply > certain modes to convert .CR2 images into greyscale and exported it to > a 16-bit .tiff format to analyze in ImageJ. > > I have been manually going through the image one by one cropping it to > remove any hot pixels and then measure the max pixel value from there. > I am kinda new to using this program and need help writing up a macro > to run this process in batch mode. The result I am expecting is an > excel sheet containing the name of each file and the max pixel value > for each image within that batch. Could anyone help me set this up? > > Thanks! > > > > -- > Sent from: http://imagej.1557.x6.nabble.com/ > > -- > 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 |
Free forum by Nabble | Edit this page |