tody411 / colorhistogram Goto Github PK
View Code? Open in Web Editor NEWSimple demos of Color Histogram (Python).
License: MIT License
Simple demos of Color Histogram (Python).
License: MIT License
@tody411
Thanks for your contribution.
Would you provide some image what you tested like flower? It will be easier to verify my own images.
The 3D Histogram plots points in correct location yet colors them with different colors.
@tody411
Thanks for your excellent project . I am using your program, but it gives the following error:
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile
execfile(filename, namespace)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/feasibilityAnalysis/ColorImageandNDVI/Color/ColorHistogram1/Test1DHistogram.py", line 28, in
hist1D.plot(ax)
File "D:\feasibilityAnalysis\ColorImageandNDVI\Color\ColorHistogram1\color_histogram\core\hist_1d.py", line 37, in plot
self._plotter.plot(ax)
File "D:\feasibilityAnalysis\ColorImageandNDVI\Color\ColorHistogram1\color_histogram\core\hist_1d.py", line 130, in plot
ax.bar(color_samples, color_densities, width=width, color=colors)
File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib_init_.py", line 1589, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\axes_axes.py", line 2430, in bar
label='nolegend',
File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\patches.py", line 707, in init
Patch.init(self, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\patches.py", line 89, in init
self.set_linewidth(linewidth)
File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\patches.py", line 368, in set_linewidth
self._linewidth = float(w)
TypeError: only size-1 arrays can be converted to Python scalars
I have changed "xrange" to "range" due to python version. The error arise in:
ax.bar(color_samples, color_densities, width=width, color=colors)
Would you suggest me please to solve this problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.