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

Creating a basic PlugInFilter


To create a PlugInFilter implementation, we add the implements keyword behind the class name and specify PlugInFilter as the implementation. When you do this using an IDE, such as NetBeans, it will place a red squiggly underline under this statement. When you place the cursor on the line with the squiggly underline and press Alt + Enter (in NetBeans), the editor will give you a list of suggestions to rectify the mistake that we made. The first complaint is that NetBeans cannot find the PlugInFilter symbol because we haven't added it yet. Press Alt + Enter and select the option called Add import for ij.plugin.filter.PlugInFilter. You will now see that the import statement is added to your source file (usually at the top of the source file). We now still have a squiggly underline in our class statement as it is missing the overrides for the abstract setup and run methods. As explained in Chapter 8, Anatomy of ImageJ Plugins PlugInFilter requires these two methods...