The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Photonic::Geometry::FromImage2D

VERSION

version 0.009

SYNOPSIS

   use Photonic::Geometry::FromImage2D;
   my $g1=Photonic::Geometry::FromImage2D->new(path=>$filename);
   $B=$g1->B;
   $G=$g2->G;

DESCRIPTION

Create a geometry object to be used in a Homogeneization calculation using as input a monochromatic 2D image.

METHODS

  • new(path=>$f, L=>$L, inverted=>$i)

    Creates a new H::G::F object

    $f is the filename of a 2D monochromatic image with white regions corresponding to the B region and black corresponding to A, unless inverted. Its size must be odd along both directions.

    $L is the size of the unit cell along the cartesian axes. By default, it is the number of pixels.

    $i controls whether the characteriztic function ought ought to be inverted: 1 means invert, 0 don't invert. Default: 0

ACCESORS (read only)

  • path

    The filename containing the image

  • For the other accesors, see Photonic::Geometry