I may be doing this completely wrong, but it works in some cases and
used to work reliably (in 3.0.5).
I've got a function returning a cell array of structs or empty
elements which I'm appending to form a single array of structs.
cors = [cors c{:}]
This used to work, and still does most of the tim
I'll provide an inefficient workaround for my own problem (just so in
case no one provides better).
[c{:}] fails with "error: octave_base_value::complex_array_value():
wrong type argument `struct'"
So, appending the cell array onto a struct array the implicit horzcat
way doesn't work.
Using an ex
Here is a mex normxcorr2 implementation done by Daniel Eaton based on
the OpenCV code (stand alone, does not require the library).
http://www.cs.ubc.ca/~deaton/remarks_ncc.html
I can't vouch for it, but it seems Mr Eaton (whoever he is) knows the
math pretty well and likes being helpful. There i
I'm computing the "sliding" (lags only in one dimension) cross
correlation of spectrograms. For many cases, the spectrograms are
quite large and the needed lag ranges are small.
These are used as a sound similarity metric and as a method to
estimate time delays (though I favor xcorrs of the actual
Digging through the list archive, I see mention of norxcorr2 in devel.
Vikram never seemed to get a replay as to the status... and I am in
want of it too.
I'm assuming that there is some clever application of FFTs which does
the computation relatively efficiently. If not, someone please tell
me.
One more thing for parcellfun. If nproc > the number of jobs, it
breaks in a not nice way.
a = parcellfun(4, @(x) (x+1), num2cell([1:2]))
A bit more complete test:
a = parcellfun(4, @(x,y) (x+y), num2cell([1:2]), num2cell([1:2]))
Easy one line fix as the last thing in the argument checking (jus
I personally like setting the nominal output stream as a variable up
front (just set to stdout 99.9% of the time).
2009/6/15 Jaroslav Hajek :
> On Mon, Jun 15, 2009 at 12:51 PM, Travis Collier wrote:
>> Here is a diff adding a "VerboseLevel" option to parcellfun.
>> It
Here is a diff adding a "VerboseLevel" option to parcellfun.
It is against the most current svn snapshot, as of about 15 minutes
ago at least ;)
Anyway, it may seem like a dumb thing, but I really need to be able to
suppress the output to keep track of what is going on at higher levels
(some using
the version of parcellfun.m contained in
general-1.1.2 (the current one on octave-forge)... please drop me a
note if I should instead post the full file.
3a4
> ## Modified by: Travis Collier 31-5-2009
31a33,34
> ## A VerboseLevel option is supported controlling level of output. 0 implies
>
submit. They are pointless if the major bug doesn't
get fixed first though.
Travis Collier
UCLA biology grad student
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech
10 matches
Mail list logo