Rank: 8870 based on 1 downloads (last 30 days) and 1 file submitted

David Provencher

Université de Sherbrooke

Personal Profile:


Watch this Author's files


Files Posted by David Provencher
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Aug 2014 lsqnonnegvect.m vectorized lsqnonneg Author: David Provencher lqnnonneg, nonnegative leastsqua... 1 0
Comments and Ratings by David Provencher View all
Updated File Comments Rating
21 Oct 2014 zumax Creates a new figure with a copy of a selected subplot. Author: Romain Monrozier

I suggest adding the foloowing modification to keep the original figure's background color :

% Add this
hFig = get(hx,'Parent');
col = get(hFig, 'color');

% Change this
hf = figure('name',[titre,'[',titrax,']'], 'color',col);

08 Aug 2014 EM algorithm for Gaussian mixture model with background noise Standard EM algorithm to fit a GMM with the (optional) consideration of background noise. Author: Andrew

I'm trying to run the code, but I keep getting this warning :

'Warning: chol failed, algorithm abandoned';

because the cholcov(Sigma(:,:,j),0); line always fails at the 2nd iteration (bn_noise='T') or 3rd iteration (bn_noise='F').

FYI, I have no NaN values in my data, and I get coherent results with kmeans() and emgm() [the submission that inspired this one]. Actually, no matter what data I feed into the function (e.g. squre matrix, rand(m,n), ...) this step always fails.

Any insight on this?

22 Mar 2013 Compare Structures Compares two structured variables recursively and notes where the two structures are different. Author: michael arant

Very useful. Would have liked a 'silent' option to disable output to command window and use only the output variables for large structures.

05 Dec 2011 inpaint_nans Interpolates (& extrapolates) NaN elements in a 2d array. Author: John D'Errico

Ok, I suspected this might be the case. I was already doing what you suggest, but I figured I might ask just in case.

Thanks for your answer!

01 Dec 2011 inpaint_nans Interpolates (& extrapolates) NaN elements in a 2d array. Author: John D'Errico

Works great!

I'm wondering if there would be a way to exclude some NaNs from the interpolation (to keep them as NaNs). At the moment, I'm masking the results away, but I'd rather exclude them altogether. I thought about modifying nan_list and known_list, but it seems to me I'd run onto problems if the input matrix wasn't "full". Any help on this?

(I'm using inpaint-nans in a stereo vision application to interpolate holes in the disparity maps. However, the images from which I compute disparity maps may have very large regions of invalid pixels which I don't need/want to interpolate).

Contact us