Sent from [1]Mail for Windows
References
Visible links
1. https://go.microsoft.com/fwlink/?LinkId=550986
--
https://mail.python.org/mailman/listinfo/python-list
if-else doesn't define a loop, but each of the for statements do.
You have defined a classification for 8 of the possible colors, leaving
millions of them undefined. If the first time through the loop you
manage to hit one of those undefined ones, you'll have no value for
classification.
On Thu, Dec 13, 2012 at 8:23 PM, inshu chauhan insidesh...@gmail.com wrote:
Are you really getting floating point values, or are they always going
to be equal to an integer? Those if/elif statements might be a problem
if you ever need to compare to a value like (128.4, 255.0, 255.0).
I dont
On 2012-12-13, inshu chauhan insidesh...@gmail.com wrote:
For this I put an else clause at end but is there a better way
to avoid this kind of situation ??
An if-elif-else structure is usually broken if you leave out the
else part. When I don't expect it to ever actually happen when
the program
On 12/13/2012 04:23 AM, inshu chauhan wrote:
if-else doesn't define a loop, but each of the for statements do.
You have defined a classification for 8 of the possible colors, leaving
millions of them undefined. If the first time through the loop you
manage to hit one of those undefined
In this code :
import cv
g = open(PointCloudmitClass.txt, w)
image = cv.LoadImageM(Z:/modules/intensity_01.tif,
cv.CV_LOAD_IMAGE_UNCHANGED)
print image
for y in xrange(0,image.height):
for x in xrange(0,image.width):
color = image[y,x]
if color == (0.0,0.0,0.0):
On Thu, Dec 13, 2012 at 2:00 AM, inshu chauhan insidesh...@gmail.com wrote:
In this code :
import cv
if color == (0.0,255.0,0.0):
classification = 1
...
elif color == (255.0, 0.0, 255.0):
classification = 7
print g, x ,
On 12/12/2012 10:00 AM, inshu chauhan wrote:
In this code :
import cv
g = open(PointCloudmitClass.txt, w)
image = cv.LoadImageM(Z:/modules/intensity_01.tif,
cv.CV_LOAD_IMAGE_UNCHANGED)
print image
for y in xrange(0,image.height):
for x in xrange(0,image.width):
color =
Am 12.12.2012 16:00, schrieb inshu chauhan:
color = image[y,x]
if color == (0.0,0.0,0.0):
continue
else :
if color == (0.0,255.0,0.0):
classification = 1
elif color == (128.0, 0.0, 255.0):
On Jan 11, 7:14 pm, Fredrik Lundh [EMAIL PROTECTED] wrote:
the core zlib library (libz.so) isn't installed on your machine.
but in my machine there is file
-rwxr-xr-x 1 bin bin48576 Sep 20 2006 /usr/local/lib/
python2.5/lib-dynload/zlib.so
if i have to install zlib library
Dear all,
Please help, i have error message when i import gzip module. The error
like this below:
bash-3.00$ python
Python 2.5 (r25:51908, Sep 20 2006, 03:46:40)
[GCC 3.4.6] on sunos5
Type help, copyright, credits or license for more information.
import gzip
Traceback (most recent call last):
syahreza.octadian wrote:
Please help, i have error message when i import gzip module. The error
like this below:
bash-3.00$ python
Python 2.5 (r25:51908, Sep 20 2006, 03:46:40)
[GCC 3.4.6] on sunos5
Type help, copyright, credits or license for more information.
import gzip
Traceback
can configure, make and install
everything fine. I'm using python 2.4 I have ubuntu dapper drake. I am
trying to install hplip which requires python. When I do this, this
also works but while running the following error occurs:
Traceback (most recent call last):
File /usr/local/bin/hp-setup,
On 9/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
can configure, make and install
everything fine. I'm using python 2.4 I have ubuntu dapper drake. I am
trying to install hplip which requires python. When I do this, this
also works but while running the following error occurs:
14 matches
Mail list logo