OOF2: The Manual
Name
OOF.Microstructure.Create_From_Image — Create a Microstructure from an already loaded Image.
Synopsis
OOF.Microstructure.Create_From_Image(name, width, height, image)
Details
- Parent Menu: OOF.Microstructure
-
Callback: function
createMSFromImagein moduleooflib.image.IO.imagemenu -
Parameters:
name- Name of the new Microstructure. Type: A character string containing no colons (:), or the value
automatic. width- Width in physical units, or automatic to use the image width. Type: An integer, a real number, or the value
automatic. height- Height in physical units. or automatic to use the image height. Type: An integer, a real number, or the value
automatic. image- Image on which to base the Microstructure. Type: The path to an existing
Imageobject.
Description
This command creates a second Microstructure based on an Image already
loaded in another Microstructure.
The name parameter is the name of the new
Microstructure. If set to automatic the
Microstructure name will be taken from the Image name.
The image parameter must be a path to an existing Image
object.
The new Microstructure will have the same pixel size as the given
image. Its physical size will be the same as the
size of the Microstructure containing image old Microstructure
if both width and height are
automatic. If one dimension is numeric and the
other is automatic, the Microstructure will be scaled
to that new size while preserving the aspect ratio of the original
Microstructure. If both dimensions are numeric, the new Microstructure might have
a different aspect ratio from the original.
Other than the Image and size, the new Microstructure will not inherit
any other data from the original. It will have no Materials,
pixel
groups, or Skeletons.



