In the latter case no macros should be called from Java, as that would limit the code to work with the currently active 3D Viewer even if the user clicked somewhere else. Since you will be specifying both values, it is up to you to determine how many slices are needed to represent the region of interest in a substack. If you would like to help make ImageJ nicer by detecting faulty driver versions, please contact us. Filters can be used to reduce noise see median filter in 3D Fast Filters. Save as an.
nest...