Actually, you can create an empty array and append (though in Julia
vernacular, it's push!).

a = Image[]
for image in images
    push!(a, image)
end

Or something along those lines.

-Jacob


On Fri, Mar 21, 2014 at 2:07 PM, Paulo Castro
<[email protected]>wrote:

> Hi,
>
> I am starting using Julia, and I'm having a simple problem. I have some
> images on a directory, and I want to iterate over each one, open it with
> Images' imread(), and store it on an array.
> I cannot create a empty array and append images to it. How can I achieve
> this?
>
> Thanks,
>
> Paulo
>

Reply via email to