public BitmapPixels(String name, Bitmap bitmap) {
    this.mName = name;

    this.mHeight = bitmap.getHeight();
    this.mWidth = bitmap.getWidth();
    this.mPixels = new short[mHeight][mWidth];
    this.mBinaryPixels = new short[mHeight][mWidth];

    BitmapTools.getPixels(bitmap, mPixels);
  }
 public void exportBinaryPixelsToFile(String outputDirectory, String name) {
   BitmapTools.exportToFile(mBinaryPixels, mHeight, mWidth, outputDirectory, name);
 }