Photonic::Geometry::FromImage2D
version 0.009
use Photonic::Geometry::FromImage2D; my $g1=Photonic::Geometry::FromImage2D->new(path=>$filename); $B=$g1->B; $G=$g2->G;
Create a geometry object to be used in a Homogeneization calculation using as input a monochromatic 2D image.
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
path
The filename containing the image
For the other accesors, see Photonic::Geometry
To install Photonic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Photonic
CPAN shell
perl -MCPAN -e shell install Photonic
For more information on module installation, please visit the detailed CPAN module installation guide.