Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
FIS, NFIS, Fuzzy

Subject: FIS, NFIS, Fuzzy

From: Twilighter

Date: 15 May, 2011 21:40:04

Message: 1 of 9


I have a Lena Image

from which i extract some of the image properties likst luminance

then i reshape the matrix
L1= reshape(L,1,4096);
fis0 = genfis1(L1,3,'gbellmf');

i get this error
Warning: FOR loop index is too large. Truncating to 9223372036854775807.

how can i solve that & what does it mean ???

Subject: FIS, NFIS, Fuzzy

From: Nasser M. Abbasi

Date: 15 May, 2011 22:05:00

Message: 2 of 9

On 5/15/2011 2:40 PM, Twilighter wrote:
>
> I have a Lena Image
>
> from which i extract some of the image properties likst luminance
>
> then i reshape the matrix
> L1= reshape(L,1,4096);
> fis0 = genfis1(L1,3,'gbellmf');
>
> i get this error
> Warning: FOR loop index is too large. Truncating to 9223372036854775807.
>
> how can i solve that& what does it mean ???


I think you have some huge image there:

EDU>> r=9223372036854775807;
EDU>> length(char(dec2bin(r)))

ans =
     64

looks like you reached the limit.
I suspect you are doing some coding error somewhere.

May be try to debug it more. set break at error and examine
closely what you are doing there. Otherwise, time to buy
128 bit computer. I think IBM has some of those.

good luck,
--Nasser

Subject: FIS, NFIS, Fuzzy

From: Nasser M. Abbasi

Date: 15 May, 2011 22:15:15

Message: 3 of 9

On 5/15/2011 3:05 PM, Nasser M. Abbasi wrote:
> On 5/15/2011 2:40 PM, Twilighter wrote:
>>
>> I have a Lena Image
>>
>> from which i extract some of the image properties likst luminance
>>
>> then i reshape the matrix
>> L1= reshape(L,1,4096);
>> fis0 = genfis1(L1,3,'gbellmf');
>>
>> i get this error
>> Warning: FOR loop index is too large. Truncating to 9223372036854775807.
>>
>> how can i solve that& what does it mean ???
>
>
> I think you have some huge image there:
>
> EDU>> r=9223372036854775807;
> EDU>> length(char(dec2bin(r)))
>
> ans =
> 64
>
> looks like you reached the limit.
> I suspect you are doing some coding error somewhere.
>

Forget about the above silly count. It is double, and all
will show 64.

> May be try to debug it more. set break at error and examine
> closely what you are doing there. Otherwise, time to buy
> 128 bit computer. I think IBM has some of those.
>
> good luck,
> --Nasser
>

Subject: FIS, NFIS, Fuzzy

From: Twilighter

Date: 15 May, 2011 22:30:20

Message: 4 of 9

my image is 512x512
then i do DWT to it which max it 64x64

then i get the final luminance matrix which is of that same size too

so u suggest me to resize my image ??

will that solve my problem

i also think my computer processor is good it's just the last year model

Subject: FIS, NFIS, Fuzzy

From: Twilighter

Date: 15 May, 2011 22:42:02

Message: 5 of 9

and the error only comes out at this line
fis0 = genfis1(L1,3,'gbellmf');

Subject: FIS, NFIS, Fuzzy

From: Nasser M. Abbasi

Date: 15 May, 2011 23:03:37

Message: 6 of 9

On 5/15/2011 3:42 PM, Twilighter wrote:
> and the error only comes out at this line
> fis0 = genfis1(L1,3,'gbellmf');

I think you are doing something wrong.

set break on error in the debugger,
and when the error happen, examin the data structures
to see what is the problem. You could be using
wrong value for the index somewhere.

I do not know what genfis1() is.

--Nasser

Subject: FIS, NFIS, Fuzzy

From: Ă–mer

Date: 21 May, 2011 17:03:02

Message: 7 of 9

"Twilighter " <mscmatlab@gmail.com> wrote in message <iqph7k$oad$1@newscl01ah.mathworks.com>...
>
> I have a Lena Image
>
> from which i extract some of the image properties likst luminance
>
> then i reshape the matrix
> L1= reshape(L,1,4096);
> fis0 = genfis1(L1,3,'gbellmf');
>
> i get this error
> Warning: FOR loop index is too large. Truncating to 9223372036854775807.
>
> how can i solve that & what does it mean ???


*This error take place especially when genfis data format shape is not regular.

DATA is a matrix with

    N+1 columns where the first N columns contain input data, and
    the last column contains the output data. Ensure that you obtained the right shape of data matrice

Subject: FIS, NFIS, Fuzzy

From: Twilighter

Date: 11 Jun, 2011 10:55:04

Message: 8 of 9

yes you are correct i considered just the column of the input ... there supposed to be another column to the expected output, which i need to figure out how to detect it to be able to implement that system

how can i assume the output for an image of that big?

Subject: FIS, NFIS, Fuzzy

From: Elsen

Date: 21 May, 2012 14:44:07

Message: 9 of 9

"Twilighter " <mscmatlab@gmail.com> wrote in message <isvhi8$sr3$1@newscl01ah.mathworks.com>...
> yes you are correct i considered just the column of the input ... there supposed to be another column to the expected output, which i need to figure out how to detect it to be able to implement that system
>
> how can i assume the output for an image of that big?





>I also have a problem like this, if you already have a solution?
>thx

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us