Discussion:
Beginner in python and mahotas
j***@public.gmane.org
2013-03-22 13:19:36 UTC
Permalink
Hi!

I have a large number of 2-D pictures in ASCII format (.asc) and I want to
use Mahotas to calculate Haralick textures. But since I lack experince IŽm
having a hard time to make it work, so I hope you guys can help me out.

1. What does f refer to, how do I know the ndarray of integer type?

mahotas.features.haralick(*f*, *ignore_zeros=False*, *preserve_haralic
k_bug=False*, *compute_14th_feature=False*)

2. Haralick textures are often calculated in four directions, can I get one
output for all the directions, how does the output code look like?

Apologies if this is laughable easy for you,

Best regards
--
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.
Luis Pedro Coelho
2013-03-22 17:20:42 UTC
Permalink
HI,
Post by j***@public.gmane.org
1. What does f refer to, how do I know the ndarray of integer type?
f is your input image. It needs to be an integer numpy array.

I don't really know how you'd load your ASCII format, you'd have to figure that one out yourself.

Perhaps you should spend some time with numpy tutorials before considering images.
Post by j***@public.gmane.org
2. Haralick textures are often calculated in four directions, can I get one output for all the directions, how does the output code look like?
You get the four dimensions separately.

HTH,
--
Luis Pedro Coelho | University of Lisbon | http://luispedro.org
--
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.
Loading...