Discussion:
Problems with colorDistance in SimpleCV
buzb
2014-01-14 19:12:04 UTC
Permalink
Hi all,

I'm having some trouble with the colorDistance function in simpleCV 1.3.0
called from python 2.7 in Ubuntu 12.04.

target=(212.0, 200.0, 150.0)

distanceImg = img.colorDistance(target)
distanceImg.save('distanceImg.jpg')
img.save('img.jpg')

Calls to colorDistance yield an image that is distorted. I've attached a
copy of the distanceImg (distanceImg.jpg) and a copy of the image (img.jpg)
that was used to derive it.

Is there a good work around to this?

Many thanks, and all the best,

--Buz
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Sprindzuk Matvey
2014-01-14 19:49:39 UTC
Permalink
I have never used these functions. Try OpenCV, Mahotas, Mamba, PIL Python
libraries, perhaps. Or you should somehow preprocess image, I think.
Otherwise, use C++ or Java for a better control on a lower level.
Post by buzb
Hi all,
I'm having some trouble with the colorDistance function in simpleCV 1.3.0
called from python 2.7 in Ubuntu 12.04.
target=(212.0, 200.0, 150.0)
distanceImg = img.colorDistance(target)
distanceImg.save('distanceImg.jpg')
img.save('img.jpg')
Calls to colorDistance yield an image that is distorted. I've attached a
copy of the distanceImg (distanceImg.jpg) and a copy of the image (img.jpg)
that was used to derive it.
Is there a good work around to this?
Many thanks, and all the best,
--Buz
--
You received this message because you are subscribed to the Google Groups
"pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Stéfan van der Walt
2014-01-14 19:55:23 UTC
Permalink
Hi Buz
Post by buzb
I'm having some trouble with the colorDistance function in simpleCV 1.3.0
called from python 2.7 in Ubuntu 12.04.
What is the colorDistance function meant to measure? Would something
like this do the trick?

http://scikit-image.org/docs/dev/api/skimage.color.html#deltae-cie76

Stéfan
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Jay Rambhia
2014-01-15 04:27:38 UTC
Permalink
Hi,

I have develop version of SimpleCV (https://github.com/sightmachine/SimpleCV)
and I'm getting the following output. I think there was a bug which was
fixed in the develop version. You could upgrade and try it,
Post by buzb
Hi all,
I'm having some trouble with the colorDistance function in simpleCV 1.3.0
called from python 2.7 in Ubuntu 12.04.
target=(212.0, 200.0, 150.0)
distanceImg = img.colorDistance(target)
distanceImg.save('distanceImg.jpg')
img.save('img.jpg')
Calls to colorDistance yield an image that is distorted. I've attached a
copy of the distanceImg (distanceImg.jpg) and a copy of the image (img.jpg)
that was used to derive it.
Is there a good work around to this?
Many thanks, and all the best,
--Buz
--
You received this message because you are subscribed to the Google Groups
"pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
Jay Rambhia | +91 996-711-9686
jayrambhia777-***@public.gmane.org
http://jayrambhia.com/


<https://github.com/jayrambhia/>
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
buzb
2014-01-29 22:04:00 UTC
Permalink
Hi Jay,

Many thanks for getting back to me on this. I haven't had a chance to try
your updated code, but your image appears to be what I want. I'll give the
code a try in the next few days and let you know how it goes.

Many thanks, and all the best,

--Buz
Post by Jay Rambhia
Hi,
I have develop version of SimpleCV (
https://github.com/sightmachine/SimpleCV) and I'm getting the following
output. I think there was a bug which was fixed in the develop version. You
could upgrade and try it,
Post by buzb
Hi all,
I'm having some trouble with the colorDistance function in simpleCV 1.3.0
called from python 2.7 in Ubuntu 12.04.
target=(212.0, 200.0, 150.0)
distanceImg = img.colorDistance(target)
distanceImg.save('distanceImg.jpg')
img.save('img.jpg')
Calls to colorDistance yield an image that is distorted. I've attached a
copy of the distanceImg (distanceImg.jpg) and a copy of the image (img.jpg)
that was used to derive it.
Is there a good work around to this?
Many thanks, and all the best,
--Buz
--
You received this message because you are subscribed to the Google Groups
"pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
Jay Rambhia | +91 996-711-9686
http://jayrambhia.com/
<https://github.com/jayrambhia/>
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Buz Barstow
2014-03-27 18:30:02 UTC
Permalink
Hi Jay,

This reply has taken a long time to come.

I'm still having trouble with the SimpleCV software. I tried to download SimpleCV from github, but am still getting the distorted output when I use colorDistance function rather than the non-distorted image that you got.

Where can I download the developer version from?

Many thanks, and all the best,

--Buz
Post by buzb
Hi Jay,
Many thanks for getting back to me on this. I haven't had a chance to try your updated code, but your image appears to be what I want. I'll give the code a try in the next few days and let you know how it goes.
Many thanks, and all the best,
--Buz
Hi,
I have develop version of SimpleCV (https://github.com/sightmachine/SimpleCV) and I'm getting the following output. I think there was a bug which was fixed in the develop version. You could upgrade and try it,
Hi all,
I'm having some trouble with the colorDistance function in simpleCV 1.3.0 called from python 2.7 in Ubuntu 12.04.
target=(212.0, 200.0, 150.0)
distanceImg = img.colorDistance(target)
distanceImg.save('distanceImg.jpg')
img.save('img.jpg')
Calls to colorDistance yield an image that is distorted. I've attached a copy of the distanceImg (distanceImg.jpg) and a copy of the image (img.jpg) that was used to derive it.
Is there a good work around to this?
Many thanks, and all the best,
--Buz
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
For more options, visit https://groups.google.com/groups/opt_out.
--
Jay Rambhia | +91 996-711-9686
http://jayrambhia.com/
--
You received this message because you are subscribed to a topic in the Google Groups "pythonvision" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pythonvision/RhJ3fWrSQPY/unsubscribe.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Buz Barstow
2014-03-27 19:20:54 UTC
Permalink
Hi Jay,

Just FYI, I went back to an old version of SimpleCV (9f395163a6 - a July 17th version of SimpleCV), and have solved my problem for the moment.

All the best,

--Buz
Post by buzb
Hi Jay,
This reply has taken a long time to come.
I'm still having trouble with the SimpleCV software. I tried to download SimpleCV from github, but am still getting the distorted output when I use colorDistance function rather than the non-distorted image that you got.
Where can I download the developer version from?
Many thanks, and all the best,
--Buz
<distanceImg.jpg>
<distanceImageout.jpg>
Post by buzb
Hi Jay,
Many thanks for getting back to me on this. I haven't had a chance to try your updated code, but your image appears to be what I want. I'll give the code a try in the next few days and let you know how it goes.
Many thanks, and all the best,
--Buz
Hi,
I have develop version of SimpleCV (https://github.com/sightmachine/SimpleCV) and I'm getting the following output. I think there was a bug which was fixed in the develop version. You could upgrade and try it,
Hi all,
I'm having some trouble with the colorDistance function in simpleCV 1.3.0 called from python 2.7 in Ubuntu 12.04.
target=(212.0, 200.0, 150.0)
distanceImg = img.colorDistance(target)
distanceImg.save('distanceImg.jpg')
img.save('img.jpg')
Calls to colorDistance yield an image that is distorted. I've attached a copy of the distanceImg (distanceImg.jpg) and a copy of the image (img.jpg) that was used to derive it.
Is there a good work around to this?
Many thanks, and all the best,
--Buz
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
For more options, visit https://groups.google.com/groups/opt_out.
--
Jay Rambhia | +91 996-711-9686
http://jayrambhia.com/
--
You received this message because you are subscribed to a topic in the Google Groups "pythonvision" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pythonvision/RhJ3fWrSQPY/unsubscribe.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "pythonvision" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pythonvision/RhJ3fWrSQPY/unsubscribe.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Loading...