title: ImageJ- how to get the slicename from the actually processed image in an imagestack
body: <p>i have a problem getting the filename from an image stack in ImageJ.
  I wrote a plugin that can be used on image stacks and gives an output result for every image in the stack with:</p>
  
  <pre><code>if (mfpc == true) {
              IJ.log(fileName+": Good");
          } else {
              IJ.log(fileName+": Bad");
          }
  </code></pre>
  
  <p>getTitle() works for single images, but only shows the Stack-Name for stacks, not the name of the actual slice.</p>
  
  <p>i also tried to get the slice name with the following code</p>
  
  <pre><code>fileName = imp.getImageStack().getShortSliceLabel(imp.getCurrentSlice());
  </code></pre>
  
  <p>but it only shows the currently chosen picture, not the picture which is handled by the plugin. My wishful thinking is the following output (while the filename is Imagex.png):</p>
  
  <ul>
  <li>Image1.png: Good </li>
  <li>Image2.png: Bad</li>
  <li>Image3.png: Good</li>
  </ul>
  
  <p>Is that possible and if so, how? :)</p>