# loadImage

Load an image file.

## Syntax

    im = loadImage()
    im = loadImage(filename)

## Description

`loadImage` loads an external image file using `imread` and returns a two-dimensional image matrix scaled between 0 and 1. If a colour image is loaded, the colour channels are summed before scaling. If no input is given for `filename`, a selection dialog is invoked.

## Optional Inputs

`filename` | filename (and pathname if not in the same directory) of the image to load

## Outputs

`im` | scaled image matrix

## Examples

- Loading External Image Maps
- 2D Time Reversal For A Circular Sensor
- Optimising k-Wave Performance

## See Also

`imread`, `resize`