public INDArray asRowVector(File f) throws IOException {
  return asRowVector(ImageIO.read(f));
}

public INDArray asRowVector ( File f ) throws IOException { return asRowVector ( ImageIO . read ( f ) ) ; }
convert a file to a row vector
