On Tue, Nov 24, 2009 at 5:30 PM, Amnon <amnon.hei...@gmail.com> wrote:

> I hope it's not the billion time you get the question.
> I wanted to use clojure for image processing. I have a 3 dimensional
> array I'm passing to clojure from java.
> I then loop on the array to manipulate it.
> Even the simplest task takes about half a minutes (I expected it to be
> over in less than a second)
>
> For example, I am turning an array to gray scale.
> I tried to erase all my false improvements and squeeze everything to a
> single function:
>
> grey should get a 3Dim array (WxHx3 colors) and return it in a gray
> scale.
> Any help would be highly appreciated.
> Amnon
>


It would be easier with some of your code. Meanwhile, check this post
http://clj-me.cgrand.net/2009/10/15/multidim-arrays/ (it doesn't apply as is
to clojure 1.0, you have to replace #^objects by #^"[Ljava.lang.Object;").

Christophe

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to