help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help-octave Digest, Vol 81, Issue 15


From: 强哥
Subject: Re: Help-octave Digest, Vol 81, Issue 15
Date: Wed, 5 Dec 2012 20:17:53 +0800

Nice to email you.Could you please instruct me that,in Matlab,why 
gammainc(0,0)=0,in detail,how we can get the expression of x^a?I'm expecting 
your reply sincerely.

发自我的 iPhone

在 2012-12-5,17:address@hidden 写道:

> Send Help-octave mailing list submissions to
>    address@hidden
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://mailman.cae.wisc.edu/listinfo/help-octave
> or, via email, send a message with subject or body 'help' to
>    address@hidden
> 
> You can reach the person managing the list at
>    address@hidden
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Help-octave digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: gui_mainfcn not defined error (Sergei Steshenko)
>   2. Re: gui_mainfcn not defined error (James Sherman Jr.)
>   3. Re: gui_mainfcn not defined error (Sergei Steshenko)
>   4. how to display an image having imaginary part (preethi k)
>   5. Re: how to display an image having imaginary part (Andy Buckle)
>   6. Re: how to display an image having imaginary part
>      (Juan Pablo Carbajal)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 4 Dec 2012 22:52:45 -0800 (PST)
> From: Sergei Steshenko <address@hidden>
> To: sarbjit <address@hidden>,    "address@hidden"
>    <address@hidden>
> Subject: Re: gui_mainfcn not defined error
> Message-ID:
>    <address@hidden>
> Content-Type: text/plain; charset=iso-8859-1
> 
>> ________________________________
>> From: sarbjit <address@hidden>
>> To: address@hidden 
>> Sent: Wednesday, December 5, 2012 8:30 AM
>> Subject: gui_mainfcn not defined error
>> 
>> 
>> Hi,??I am new user to Octave/Matlab. I am having an Matlab code, when I try 
>> to run this in Octave. I am getting the following message :- 
>> octave-3.6.2.exe:29> sinesum2
> error: `gui_mainfcn' undefined near line 44 column 5
> error: called from:
> error:?? D:\Octave-3.6.2\sinesum2.m at line 44, column 5 Can some one please 
> help me to make it work in Octave. Thanks 
>>> ________________________________
>> View this message in context: gui_mainfcn not defined error
>> Sent from the Octave - General mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://mailman.cae.wisc.edu/listinfo/help-octave
> 
> Looking at "gui" in "gui_mainfcn" I'd say it a Matlab-speicific GUI-related 
> function which doesn't exist in Octave.
> 
> Octave is a _console_ application.
> 
> Regards,
> ? Sergei.
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 5 Dec 2012 01:54:36 -0500
> From: "James Sherman Jr." <address@hidden>
> To: sarbjit <address@hidden>
> Cc: address@hidden
> Subject: Re: gui_mainfcn not defined error
> Message-ID:
>    <address@hidden>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> On Wed, Dec 5, 2012 at 1:30 AM, sarbjit <address@hidden> wrote:
>> Hi, I am new user to Octave/Matlab. I am having an Matlab code, when I try
>> to run this in Octave. I am getting the following message :-
>> octave-3.6.2.exe:29> sinesum2 error: `gui_mainfcn' undefined near line 44
>> column 5 error: called from: error: D:\Octave-3.6.2\sinesum2.m at line 44,
>> column 5 Can some one please help me to make it work in Octave. Thanks
>> ________________________________
>> View this message in context: gui_mainfcn not defined error
>> Sent from the Octave - General mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://mailman.cae.wisc.edu/listinfo/help-octave
> 
> Greetings,
> 
> Just guessing from the name of the function, it calls some Matlab gui
> function.  Octave currently does not have gui functionality (but it is
> coming soon!  Its currently in the development branch).  If you can't
> wait, your two options are either to compile the development branch
> yourself (though I have no idea if said function would be implemented)
> or try one GUIs put out by 3rd parties.  You can read more about this:
> http://wiki.octave.org/FAQ#GUI
> 
> Hope this helps,
> 
> James Sherman
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Tue, 4 Dec 2012 23:11:39 -0800 (PST)
> From: Sergei Steshenko <address@hidden>
> To: "James Sherman Jr." <address@hidden>, sarbjit
>    <address@hidden>
> Cc: "address@hidden" <address@hidden>
> Subject: Re: gui_mainfcn not defined error
> Message-ID:
>    <address@hidden>
> Content-Type: text/plain; charset=iso-8859-1
> 
> 
> 
> 
> 
> ----- Original Message -----
>> From: James Sherman Jr. <address@hidden>
>> To: sarbjit <address@hidden>
>> Cc: address@hidden
>> Sent: Wednesday, December 5, 2012 8:54 AM
>> Subject: Re: gui_mainfcn not defined error
>> 
>> On Wed, Dec 5, 2012 at 1:30 AM, sarbjit <address@hidden> wrote:
>>> Hi, I am new user to Octave/Matlab. I am having an Matlab code, when I try
>>> to run this in Octave. I am getting the following message :-
>>> octave-3.6.2.exe:29> sinesum2 error: `gui_mainfcn' undefined near
>> line 44
>>> column 5 error: called from: error: D:\Octave-3.6.2\sinesum2.m at
>> line 44,
>>> column 5 Can some one please help me to make it work in Octave. Thanks
>>> ________________________________
>>> View this message in context: gui_mainfcn not defined error
>>> Sent from the Octave - General mailing list archive at Nabble.com.
>>> 
>>> _______________________________________________
>>> Help-octave mailing list
>>> address@hidden
>>> https://mailman.cae.wisc.edu/listinfo/help-octave
>> 
>> Greetings,
>> 
>> Just guessing from the name of the function, it calls some Matlab gui
>> function.? Octave currently does not have gui functionality (but it is
>> coming soon!? Its currently in the development branch).? If you can't
>> wait, your two options are either to compile the development branch
>> yourself (though I have no idea if said function would be implemented)
>> or try one GUIs put out by 3rd parties.? You can read more about this:
>> http://wiki.octave.org/FAQ#GUI
>> 
>> Hope this helps,
>> 
>> James Sherman
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://mailman.cae.wisc.edu/listinfo/help-octave
> 
> Is the http://wiki.octave.org/FAQ#GUI entry about GUI frontend or it's about 
> GUI building facilities - like menus, buttons, sliders, etc - whose callback 
> can be Octave functions ?
> 
> E.g. like http://forge.scilab.org/index.php/p/guimaker/ ?
> 
> Also see GUI in http://www.scilab.org/products/scilab/roadmap .
> 
> Thanks,
> ? Sergei.
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Wed, 5 Dec 2012 14:51:24 +0530
> From: preethi k <address@hidden>
> To: address@hidden
> Subject: how to display an image having imaginary part
> Message-ID:
>    <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> hi all,
>        While doing the wiener filter in image processing imshow shows
> warning when displaying a image having imaginary part. I didn't get the
> result. How can we display a image having imaginary part. Following is my
> code.
> 
> %wiener
> close all;
> clear all;
> clc;
> 
> 
> a=imread('/home/preethi/diplab/Images/lenna.jpg');
> x=double(a);
> h=[0 .05 .05 0;.15 .1 .1 .15;.0 .1 .1 .0;0 .1 .1 0];
> [m n]=size(x);
> gmn=conv2(x,h);
> [m1 n1]=size(gmn);
> %without noise
> hkl=fft2(h,m1,n1);
> gkl=fft2(gmn);
> x=gmn;
> sigma2x=var(var(x));
> hkkl=conj(hkl);
> hkl2=hkl.*hkkl;
> denom=hkl2;
> g1kl=hkkl./denom;
> fmn=ifft2(gkl.*g1kl);
> figure, subplot(131),imshow(a),title('original image');
> subplot(132),imshow(uint8(gmn)),title('degraded image');
> subplot(133),imshow(abs(fmn)),title('restored image');
> %with noise
> gmn=imnoise(uint8(gmn),'gaussian');
> hkl=fft2(h,m1,n1);
> gkl=fft2(gmn);
> x=gmn;
> sigma2w=(var(var(x)));
> er=sigma2x/sigma2w;
> hkkl=conj(hkl);
> hkl2=hkl.*hkkl;
> denom=hkl2+er;
> g1kl=hkkl./denom;
> fmn=ifft2(gkl.*g1kl);
> figure, subplot(131),imshow(a),title('original image');
> subplot(132),imshow(uint8(gmn)),title('degraded image with noise');
> subplot(133),imshow(fmn),title('restored image');
> 
> 
> --Thanks
> Preethi
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://mailman.cae.wisc.edu/pipermail/help-octave/attachments/20121205/6f53289e/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 5
> Date: Wed, 5 Dec 2012 09:35:05 +0000
> From: Andy Buckle <address@hidden>
> To: preethi k <address@hidden>
> Cc: Octave users list <address@hidden>
> Subject: Re: how to display an image having imaginary part
> Message-ID:
>    <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On 5 December 2012 09:21, preethi k <address@hidden> wrote:
> 
>> hi all,
>>        While doing the wiener filter in image processing imshow shows
>> warning when displaying a image having imaginary part. I didn't get the
>> result. How can we display a image having imaginary part. Following is my
>> code.
>> 
>> %wiener
>> close all;
>> clear all;
>> clc;
>> 
>> 
>> a=imread('/home/preethi/diplab/Images/lenna.jpg');
>> x=double(a);
>> h=[0 .05 .05 0;.15 .1 .1 .15;.0 .1 .1 .0;0 .1 .1 0];
>> [m n]=size(x);
>> gmn=conv2(x,h);
>> [m1 n1]=size(gmn);
>> %without noise
>> hkl=fft2(h,m1,n1);
>> gkl=fft2(gmn);
>> x=gmn;
>> sigma2x=var(var(x));
>> hkkl=conj(hkl);
>> hkl2=hkl.*hkkl;
>> denom=hkl2;
>> g1kl=hkkl./denom;
>> fmn=ifft2(gkl.*g1kl);
>> figure, subplot(131),imshow(a),title('original image');
>> subplot(132),imshow(uint8(gmn)),title('degraded image');
>> subplot(133),imshow(abs(fmn)),title('restored image');
>> %with noise
>> gmn=imnoise(uint8(gmn),'gaussian');
>> hkl=fft2(h,m1,n1);
>> gkl=fft2(gmn);
>> x=gmn;
>> sigma2w=(var(var(x)));
>> er=sigma2x/sigma2w;
>> hkkl=conj(hkl);
>> hkl2=hkl.*hkkl;
>> denom=hkl2+er;
>> g1kl=hkkl./denom;
>> fmn=ifft2(gkl.*g1kl);
>> figure, subplot(131),imshow(a),title('original image');
>> subplot(132),imshow(uint8(gmn)),title('degraded image with noise');
>> subplot(133),imshow(fmn),title('restored image');
>> 
>> 
>> --Thanks
>> Preethi
> 
> You need to decide what the significance to you of the imaginary part is.
> 
> imshow(real(a))
> imshow(abs(a))
> 
> might be meaningful. doing something fancy with colours might be meaningful
> to you. Perhaps real is blue and imaginary is green.
> 
> -- 
> /* andy buckle */
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://mailman.cae.wisc.edu/pipermail/help-octave/attachments/20121205/73e636bd/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 6
> Date: Wed, 5 Dec 2012 10:40:40 +0100
> From: Juan Pablo Carbajal <address@hidden>
> To: preethi k <address@hidden>
> Cc: address@hidden
> Subject: Re: how to display an image having imaginary part
> Message-ID:
>    <address@hidden>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> On Wed, Dec 5, 2012 at 10:21 AM, preethi k <address@hidden> wrote:
>> hi all,
>>        While doing the wiener filter in image processing imshow shows
>> warning when displaying a image having imaginary part. I didn't get the
>> result. How can we display a image having imaginary part. Following is my
>> code.
>> 
>> %wiener
>> close all;
>> clear all;
>> clc;
>> 
>> 
>> a=imread('/home/preethi/diplab/Images/lenna.jpg');
>> x=double(a);
>> h=[0 .05 .05 0;.15 .1 .1 .15;.0 .1 .1 .0;0 .1 .1 0];
>> [m n]=size(x);
>> gmn=conv2(x,h);
>> [m1 n1]=size(gmn);
>> %without noise
>> hkl=fft2(h,m1,n1);
>> gkl=fft2(gmn);
>> x=gmn;
>> sigma2x=var(var(x));
>> hkkl=conj(hkl);
>> hkl2=hkl.*hkkl;
>> denom=hkl2;
>> g1kl=hkkl./denom;
>> fmn=ifft2(gkl.*g1kl);
>> figure, subplot(131),imshow(a),title('original image');
>> subplot(132),imshow(uint8(gmn)),title('degraded image');
>> subplot(133),imshow(abs(fmn)),title('restored image');
>> %with noise
>> gmn=imnoise(uint8(gmn),'gaussian');
>> hkl=fft2(h,m1,n1);
>> gkl=fft2(gmn);
>> x=gmn;
>> sigma2w=(var(var(x)));
>> er=sigma2x/sigma2w;
>> hkkl=conj(hkl);
>> hkl2=hkl.*hkkl;
>> denom=hkl2+er;
>> g1kl=hkkl./denom;
>> fmn=ifft2(gkl.*g1kl);
>> figure, subplot(131),imshow(a),title('original image');
>> subplot(132),imshow(uint8(gmn)),title('degraded image with noise');
>> subplot(133),imshow(fmn),title('restored image');
>> 
>> 
>> --Thanks
>> Preethi
>> 
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://mailman.cae.wisc.edu/listinfo/help-octave
> 
> First,
> 
> hkl=fft2(h,m1,n1);
> hkkl=conj(hkl);
> hkl2=hkl.*hkkl;
> 
> Could be replaced with
> hkl   = fft2 (h,m1,n1);
> hkl2 = abs (hkl).^2;
> 
> The function abs takes the modulus of the imaginary numbers, and it
> seems your are not using the other variables.
> 
> Regarding the imaginary part. It seems you are recovering and image
> after some manipulations of it fft. This could generate an ifft that
> has small imaginary parts. check how big is the imaginary part, for
> example
> fmn = ifft2 (gkl.*g1kl);
> 
> figure;
> subplot (121);
> imshow (real (fmn));
> title ('Real part');
> 
> subplot (122);
> imshow (imag (fmn));
> title('Imaginary part');
> 
> 
> ------------------------------
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
> 
> 
> End of Help-octave Digest, Vol 81, Issue 15
> *******************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]