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 left1.823493617711442img[1:5,1:5]Broadcasting
AstroImages participate in broadcasting as expected:
@. img + img^2 + 2img^3You can update them in-place (if the underlying array you passed supports mutation)
img[1:5,:] .= 0
img