[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
floor()
From: |
shoker_17 |
Subject: |
floor() |
Date: |
Thu, 28 Sep 2006 09:56:37 -0700 (PDT) |
Octave Version: 2.1.72
Knowledge of Octave: Beginner
############### matrix of an image#######################
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
0.996078431372549 0.980392156862745 0.992156862745098 1 1 1 1 1 1 1
1 0.556862745098039 0.733333333333333 0.733333333333333 0.733333333333333
0.733333333333333 0.733333333333333 0.737254901960784 0.729411764705882
0.996078431372549
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
############### matrix of an image#######################
The above matrix was used during the computation. When I used floor() to
round down the decimal values, I got the following result. Please enlighten
me!!
############### result#######################
1 1 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 1 1 1 1 1
1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0 0
############### result#######################
Its not difficult for us to see that the result does not tally with the
original image.
Anyone care faced this problem before??
Shoker
--
View this message in context:
http://www.nabble.com/floor%28%29-tf2352097.html#a6550478
Sent from the Octave - General mailing list archive at Nabble.com.