Book Image

Image Processing with ImageJ - Second Edition

Book Image

Image Processing with ImageJ - Second Edition

Overview of this book

Advances in image processing have been vital for the scientific and technological communities, making it possible to analyze images in greater detail than ever before. But as images become larger and more complex, advanced processing techniques are required. ImageJ is built for the modern challenges of image processing – it’s one of the key tools in its development, letting you automate basic tasks so you can focus on sophisticated, in depth analysis. This book demonstrates how to put ImageJ into practice. It outlines its key features and demonstrates how to create your own image processing applications using macros and ImageJ plugins. Once you’ve got to grips with the basics of ImageJ, you’ll then discover how to build a number of different image processing solutions. From simple tasks to advanced and automated image processing, you’ll gain confidence with this innovative and powerful tool – however and whatever you are using it for.
Table of Contents (17 chapters)
Image Processing with ImageJ Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
2
Basic Image Processing with ImageJ
Index

Adding user interaction and preferences


The plugin that we have created thus far runs fine as a standalone plugin. However, it is also very easy to increase its power by allowing it to run in batch mode over a folder containing a large set of data files. This section will look at some of the changes that need to be incorporated for it to work. By setting certain steps as individual methods that can be called when the main class is instantiated, we can perform specific steps in a similar way as we have been doing for other classes. In our example, we used the ParticleAnalyzer, ThresholdToSelection and the Binary plugin classes in a similar way. The only requirements that we need to add are some constants and default settings that allow this class to work with minimal configuration. In the following sections, I will show you a few alterations that can make this class a bit more flexible to use in other plugins.

Settings and options dialog

We have several parameters in our plugin that will influence...