1.214. importImage

Full Name: herschel.ia.toolbox.image.ImportImageTask
Alias: importImage
Type: Java Task - Java Task
Import: from herschel.ia.toolbox.image import ImportImageTask
Categories

Images

Input-output

Description

This is a task to import an image from a file.

This is a task to import an image from a file (bmp, fpx, gif, jpg, png, pnm, tiff or fits format).

Example

Example 1: This is how you can import a file into an image
path = "testImage/filename.fits"
myImage = importImage(filename = path)

API details

Properties

Image image [INOUT, OPTIONAL, default=None]

This is the input image, in which the file must be loaded.

string filename [INPUT, MANDATORY, default=None]

This is the file to import.

See also