|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
ImageFileApply
ImageFileApply[f, "inputfile", "outputfile"]
applies the function f to the list of channel values for each pixel of the image stored in
and stores the result in
.
Details and OptionsDetails and Options
- ImageFileApply can be used to read, process, and write successive blocks of data from a very large image file whose size could exceed available memory.
- ImageFileApply[f, "inputfile"] stores the result of an image file in the working directory where the output file name is the concatenation of
and the result of DateString[]. - ImageFileApply works with TIFF, JPEG, and PNG files. The created
always has the same file format, data type, and dimensions as
. - ImageFileApply works on images with any number of channels.
- In ImageFileApply[f, ...], the function f can return a number or a list of any length.
- The channel values supplied to f are normally in the range 0 to 1, regardless of the underlying type used in the Image object. The function f is assumed to return channel values that are normally in the range 0 to 1.
- The following options can be given:
-
Interleaving True whether to supply f lists of channel values "ImageList" All frames to process from a file with multiple images "MaxBlockSize" 8000000 maximal size of image blocks in pixels loaded into the memory - For the most efficient file processing, stripes or tiles of the image may be accessed in a specific order.
- The value of the option
may be exceeded if it is smaller than the smallest block supported for the input file. - With
, the output image only contains the processed frames.
New in 9
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

