![]() ![]() For example, normalize the image relative to a known good mean and standard deviation for your data set. The preprocessor script gives you maximum power: do whatever you want with the image. ![]() When TrakEM2 loads the image, the script will run on the image before TrakEM2 ever sees its contents. This will set the script to every image of every layer, and trigger mipmap regeneration for every image. To set the script to all images, save the above to a file named “whatever.bsh” (notice the filename extension “.bsh”) and then right-click on the TrakEM2 canvas and choose “Script - Set preprocessor script layer-wise”, and choose the whole range of layers. run ( imp, "Enhance Local Contrast (CLAHE)", "blocksize=127" + " histogram=256 maximum=3 mask=*None* fast_(less_accurate)" ) In the script, the patch and imp variables exist automatically, and represent the Patch instance and the ImagePlus instance that the Patch wraps, respectively. For example, a beanshell script to run CLAHE on each image. Create a preprocessor script and set it to all images.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |