/*
 * Copyright (c) 2017 Ferréol Soulez ferreol.soulez@univ-lyon1.fr
 *
 * This file is part of microTiPi
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

package microTiPi.microscopy;

/**
 * Define a class for meta-data
 * @author ferreol
 *
 */
public class MicroscopeMetadata {
    //Just a public object with all psf values inside
    /**
     * Lateral size of a pixel in nm
     */
    public double dxy     = 64.5;
    /**
     * axial sampling step size
     */
    public double dz      = 160;
    /**
     * number of pixels along x or y
     */
    public int    nxy     = 256;
    /**
     * number of planes
     */
    public int    nz      = 128;
    /**
     * Numerical aperture
     */
    public double na      = 1.4;
    /**
     * Wavelength in nm
     */
    public double lambda  = 542;
    /**
     * Refractive index of the immersion medium
     */
    public double ni      = 1.518;

    @Override
    public String toString(){
        return new String("dxy: "+dxy+" dz: "+dz+" nxy: "+nxy+" nz: "+nz+" na "+na+" lambda "+lambda+" ni "+ni);
    }
}

@@ -1433,16 +1433,101 @@
 ouble dx
+     = 64.5;%0A    /**%0A     * Lateral size of a pixel in nm%0A     */%0A    public double d
 y     = 
@@ -1524,32 +1524,32 @@
  dy     = 64.5;%0A
-
     /**%0A     * a
@@ -1659,32 +1659,37 @@
 x or y%0A     */%0A 
+   //
    public int   
@@ -1704,32 +1704,193 @@
  = 256;%0A    /**%0A
+     * number of pixels along x%0A     */%0A    public int    nx     = 256;%0A    /**%0A     * number of pixels along  y%0A     */%0A    public int    ny     = 256;%0A    /**%0A
      * number of
@@ -2263,15 +2263,23 @@
 (%22dx
-y
 : %22+dx
++%22dy: %22+d
 y+%22 
@@ -2295,15 +2295,24 @@
 %22 nx
+: %22+nx+%22 n
 y: %22+n
-x
 y+%22 

pixel can be rectangular