/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import ij.IJ;
import ij.ImagePlus;
import ij.process.ByteProcessor;
import AnaMorf.SkeletonPruner;

        SkeletonPruner sp = new SkeletonPruner(100, (ByteProcessor) (IJ.getImage()).getProcessor().convertToByteProcessor());
        (new ImagePlus("Pruned", sp.getPrunedImage())).show();