Array Operations

You can operate on an AstroImage like any other Julia array.

using AstroImages

img = AstroImage(randn(10,10))

Indexing

You can look up individual pixels (see Conventions)

img[1,1] # Bottom left
1.4302057007921463
img[1:5,1:5]

Broadcasting

AstroImages participate in broadcasting as expected:

@. img + img^2 + 2img^3

You can update them in-place (if the underlying array you passed supports mutation)

img[1:5,:] .= 0
img