I'm afraid that's not exactly what I'm looking for.  After
re-analyzing the problem and reading chapter 3 of the PDL book, I
realize what I actually need to do is find or write a "primitive" code
that will project a line into a plane, and then let threading take
care of doing that to each line in my image and give me a cube.  I
think I can manage that, but I haven't worked with c much, and I'm not
sure I understand how to use PP completely, but hopefully I'll learn.

Sort of on that note, I was hoping to use the code for, say, diagonal,
or some other similar code, as an example, but I can't find it.
Core.pm and Slices.pm have references to diagonal and diagonalI, but
I'm not sure where to follow those.  Where can I find out about how
the code is structured/where the source is?


Not going to be much help about your actual coding problem - it does sound indeed that you want to use PP for it. As for finding the source, this can sometimes be a bit tricky because the manual pages sometimes lead you astray..

diagonal is a good case in point. When you do help diagonal in the perldl shell you will be told that it is defined in Core.pm. This is in Basic/Core/Core.pm in the PDL source tree. A lot of key functionality is defined there. However the diagonal (and some other routines) are defined as simple wrappers around a different function, namely diagonalI. Here then comes the tricky part.. where is this.

Searching blindly will get you there (something like find . -name '*.pd' -exec grep -i -H 'diagonalI' {}\;) but who wants to do that each time. Anyway, first priority is to find a .pd file because these are the ones that contain the PP definitions you want. And I find that unless I want to do something hairy I tend to only need to look at two files for core functionality: Basic/Primitive/primitive.pd and Basic/Slices/slices.pd - these define many of the most basic functions and are useful to browse to get some information.

That said, diagonalI is _not_ the function I'd start with if I were you... In fact, it does sound like given your problem that what you really want to do is to look at the routines in Image2D/image2d.pd and ImageND/imagend.pd and get a feel for what you need from these.

                                        Cheers,
                                                Jarle.




_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to