tferr / Scripts

:microscope::cocktail: Home of the ImageJ BAR: A collection of Broadly Applicable Routines for ImageJ
https://imagej.net/BAR
GNU General Public License v3.0
24 stars 18 forks source link

Scientific representation of y values in Find Peaks (1e-4 instead of 0.0004) #20

Closed roedel02 closed 7 years ago

roedel02 commented 7 years ago

Hi! I just installed BAR to use the "Find_Peaks" tool ( Scripts/BAR/src/main/resources/scripts/BAR/Data_Analysis/Find_Peaks.bsh ). Thanks for developing it, it's very useful! I'm new on github, sorry if I chose the wrong place to report an error. Is it possible to return the result of the peak finder in a scientific representation (1e-4 instead of 0.0004)? I'm working with a 32bit tif image with float values between -2e-12 and +1e-8. The program finds all maxima and minima as needed and returns the plot results in a table "Plot Values". The minimum y-values are fine (e.g. -1.05732E-11), but the y-values of the maxima are displayed as a float (e.g. 0.000000007). Better accuracy would be helpful. Thanks!

tferr commented 7 years ago

Even if not documented that feature exists already: Please toggle scientific notation in Analyze>Set Measurements... then run Find Peaks. Does it work for you?

roedel02 commented 7 years ago

Oh, that was an easy fix. Sorry for bothering you and thanks a lot for the fast answer!

tferr commented 7 years ago

No problem, it is one of those things: easier to implement than to document. I just added a mention to the wiki page, so it is not forgotten. As per where to submit issues like this: here is great, the ImageJ forum also works.