Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
10 Oct 2009 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal Cheng, Raymond

Thanks for your sharing.

04 Sep 2009 Rotate Image Rotate an image in X degrees. Author: Ohad Gal Pearl

02 Jul 2009 progressbar Progressbar with an abort button. Author: Ohad Gal andrey

not bad, but for 50,000 calculations workbar slows progress down by a factor of 2. Better than waitbar (a factor of 5) but still...

19 May 2009 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal Hari

thanks for code.

19 Feb 2009 plot arrowhead Simple and SMALL code for arrowhead plot. Author: Ohad Gal Martinez-Ortiz, Carlos

10 Feb 2009 plot arrowhead Simple and SMALL code for arrowhead plot. Author: Ohad Gal Demarteau, Emile

This is the function I was looking for. Great work. Makes plotting arrows a piece of cake.

Thanks for sharing

06 Feb 2009 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal Sophie

I found.. it's just a question of angle: should have done:
t = - ellipse_t.phi;

05 Feb 2009 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal Sophie

@Samuel: did you resolve your problem?
I do not know your exact problem but maybe what you want is this:
handle= subplot(221); % or something like this
ellipse_t = fit_ellipse(x,y,handle); % the ellipse should be drawn on the subplot else your ellipse is out of range if I am not wrong

05 Feb 2009 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal Sophie

Thanks a lot for this script which is really useful!
I have one question because I get into trouble: I would like to get all pixels that are inside the ellipse.. I was doing something like that but it does not work:

x0 = ellipse_t.X0_in;
y0 = ellipse_t.Y0_in;
a = ellipse_t.a;
b = ellipse_t.b;
t = ellipse_t.phi;
for x=1:size(I,1)
 for y=1:size(I,2)
        X = (x-x0)*cos(t)+(y-y0)*sin(t);
        Y = -(x-x0)*sin(t)+(y-y0)*cos(t);
       if (X^2/a^2+Y^2/b^2)>1 % outside ellipse
            I(y,x) = 0;
        end
end
end

Any idea? Thanks in advance!

05 Feb 2009 A Collection of Fitting Functions A collection of fitting functions for various distributions. Author: Ohad Gal c a

Had similar problem to John Finan above and used same fix. However have other problem with fit_mix_gaussian: it seems to be sensitive to magnitude to data. Using data scaled from appr. -0.7 to 5 it gives me a fit which is incorrect (data is skewed in some manner I have not identified). Changing the magnitude of the input vector via multiplication by some constants causes it to not converge for > 50k iterations.

Rather than systematically determine the failure modes, is there any info on requirements on input vector, such as normalization, etc.? I see normalization required for LSE's but for gaussian?

Thanks

19 Jan 2009 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal Samuel

Hi, I have one question.... When a run the code the program shows the ellipse result, but don't plot the graphic with the points and ellipse fit curve (the same graphic above). I would like to see the fit curve, but I don't know whats is the problem... Please, anybody help-me.... (sorry my english)

04 Jan 2009 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal Gans, Alex

good jop

17 Nov 2008 progressbar Progressbar with an abort button. Author: Ohad Gal Yalcinoglu, Latif

If you use following code, then you can see the estimated process time in bar..( 'mod' is for saving the total process time)..

tic
for i=1:yourprocess
        if mod(i,100)==0
        totaltime = int32(toc*yourprocess/i);
        string = sprintf('Trace # %d/%d, Time = %d sec', i,... not, totaltime);
        waitbar(i/yourprocess,h,['' string ]);
% ...
% your process....
% ...
end

01 Nov 2008 A Collection of Fitting Functions A collection of fitting functions for various distributions. Author: Ohad Gal Ken, Om

Guys, i use Randraw function to generate data randomly from a truncated normal distribution, but when i tested the generated data if they have come from a Normal distribution (not truncated), the hypothesis was rejected. which means that the data can not be assumed to have come from a Normal distribution, If I use the Normal distribution to fit my collected data using for example dfittool tool box, I get a mean and sigma values , when I use them to genera data from the randraw function with using (y = randraw('normaltrunc', [0, +inf, mu, sigma], 1, 1e5), the data obtained do not follw a normal distribution. so what i need is some kind of distribution fitting tool that can fit my original field collected data to a left Truncated normal distribution and give me the right parameters , i.e. mu and sigma
regards

14 Oct 2008 progressbar Progressbar with an abort button. Author: Ohad Gal Schuck, Peter

works great, simple to use.

10 Oct 2008 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal Shaw, Kevin

Love it. Works as advertised.

07 Oct 2008 plot arrowhead Simple and SMALL code for arrowhead plot. Author: Ohad Gal Mutha, Shashank

works fine!

31 Aug 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal mishra, vihag

It is great help to me.thanks for the code

14 Aug 2008 Rotate Image Rotate an image in X degrees. Author: Ohad Gal prakash, vaira

26 Jul 2008 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal Peake, Dave

Exactly what I was after, perfect. Does what it says, does it well and easily.

10 Jul 2008 Rotate Image Rotate an image in X degrees. Author: Ohad Gal Lin, Amanda

There is only 1 small suggestion. The images I have are in uint8. Your code at line 112 will give error message. So what I did was convert my image matrix to double and after rotation, convert the output matrix to uint8. So if you can check the input image's data first, do the conversion within your code when necessary, that'll be good.

01 Jul 2008 Rotate Image Rotate an image in X degrees. Author: Ohad Gal Sharples, Steve

Excellent code, thank you for sharing.

18 Jun 2008 plot arrowhead Simple and SMALL code for arrowhead plot. Author: Ohad Gal Guevara Codina, Edgar

Very simple and fulfilled my requirements. Good job!

18 Jun 2008 A Collection of Fitting Functions A collection of fitting functions for various distributions. Author: Ohad Gal Dolev, Elli

Hello there,
I found your application very usfull and I winder if it is possible to use it and to ask you one question please.
Thank you,
Elli

04 Jun 2008 A Collection of Fitting Functions A collection of fitting functions for various distributions. Author: Ohad Gal Viswanathan, Harish

21 May 2008 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal Nilsson, Daniel

Awesome! I just had to modify the program to plot the non-rotated ellipse instead, otherwise this was perfect!

19 May 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal Kumar, Kshitiz

Extremely helpful, there could also have been another piece of code which could compress/uncompress any given input image.

15 May 2008 Rotate Image Rotate an image in X degrees. Author: Ohad Gal Scolding, Simone

clever

15 May 2008 Rotate Image Rotate an image in X degrees. Author: Ohad Gal Moyles, David

15 May 2008 Rotate Image Rotate an image in X degrees. Author: Ohad Gal hardy, Ben

13 May 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal Hamza, Syed

Excellent. 11 figures ! All are great. Thanks and well done.

06 May 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal zhen, xu

05 May 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal ALSAADI, MUNEER

25 Apr 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal Jimmy, Jimmberto

NO COMMENT

23 Apr 2008 Rotate Image Rotate an image in X degrees. Author: Ohad Gal Ahmed, Shamem

Very interesting

17 Apr 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal nassar, eman

thanks

02 Apr 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal selvaraj, subathra

29 Mar 2008 plot arrowhead Simple and SMALL code for arrowhead plot. Author: Ohad Gal D, Joris

Bug: max of head width is not calculated with max_width but max_length

10 Mar 2008 plot arrowhead Simple and SMALL code for arrowhead plot. Author: Ohad Gal Haase, Amy

It works! Thanks

07 Mar 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal xs, li

01 Mar 2008 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal s, a

26 Feb 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal scarabe, Scaramange

14 Feb 2008 progressbar Progressbar with an abort button. Author: Ohad Gal wei, h

easy and just to the point.

26 Jan 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal adelouahed, sabri

good work

06 Jan 2008 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal s, s

thanks

23 Dec 2007 A Collection of Fitting Functions A collection of fitting functions for various distributions. Author: Ohad Gal poorakbari, mahdi

22 Dec 2007 JPEG Compression An example for jpeg compression and the restoration. Author: Ohad Gal DORA, SIDHARTH

that was a good one.well sir this is a student doing a project in image compression.well i needed a favour from you...well if u can clarify our small queries,we would be very greatful to you.

13 Dec 2007 A Collection of Fitting Functions A collection of fitting functions for various distributions. Author: Ohad Gal Clark, Thomas

This submission requires the statistics toolbox, in order to use the 2D gaussian fit (line 32, build_mix_2D_gaussian.m)

12 Dec 2007 fit_ellipse Find the best fit for an ellipse using a given set of points (a closed contour). Author: Ohad Gal Pur, Roy

THANKS

28 Nov 2007 plot arrowhead Simple and SMALL code for arrowhead plot. Author: Ohad Gal zhang, xiaolong

helpful. but 3d should be considered.

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com