Hi,
I have written a script to try to combine five images into a three channels
RGB images<http://dip4fish.blogspot.com/2011/05/trying-to-combine-mfish-images-into-rg…>
.
The resulting RGB image looks like a grey scale image instead of a color
one.
I have three np.array Rnorm, Gnorm, Bnorm which are copied into a rgb array:
*rgb = np.zeros((shape[0],shape[1],3),dtype=float)
mxr=np.max(R)
mxg=np.max(G)
mxb=np.max(B)
Rnorm=np.uint8((255*(R/mxr)))Gnorm=np.uint8((255*(R/mxg)))Bnorm=np.…
[View More]uint8((255*(R/mxb)))#copy each RGB component in an RGB array
rgb[:,:,0]=Rnorm
rgb[:,:,1]=Gnorm
rgb[:,:,2]=Bnorm*
*pylab.subplot(224, aspect='equal',frameon=False, xticks=[], yticks=[])
pylab.imshow(rgb)
pylab.show()*
Any advice?
Thank you
Jean-Patrick
[View Less]
Hi All,
On behalf of the NumPy team, I am pleased to announce the release of
NumPy 1.23.2. NumPy 1.23.2 is a maintenance release that fixes bugs
discovered after the 1.23.1 release. Notable features are:
- Typing changes needed for Python 3.11
- Wheels for Python 3.11.0rc1
The Python versions supported for this release are 3.8-3.11. Wheels can be
downloaded from PyPI <https://pypi.org/project/numpy/1.23.2>; source
archives, release notes, and wheel hashes are available on Github
…
[View More]<https://github.com/numpy/numpy/releases/tag/v1.23.2>.
*Contributors*
A total of 9 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
- Alexander Grund +
- Bas van Beek
- Charles Harris
- Jon Cusick +
- Matti Picus
- Michael Osthege +
- Pal Barta +
- Ross Barnowski
- Sebastian Berg
*Pull requests merged*
A total of 15 pull requests were merged for this release.
- #22030: ENH: Add ``__array_ufunc__`` typing support to the ``nin=1``
ufuncs
- #22031: MAINT, TYP: Fix ``np.angle`` dtype-overloads
- #22032: MAINT: Do not let ``_GenericAlias`` wrap the underlying
classes'...
- #22033: TYP,MAINT: Allow ``einsum`` subscripts to be passed via
integer...
- #22034: MAINT,TYP: Add object-overloads for the ``np.generic`` rich
comparisons
- #22035: MAINT,TYP: Allow the ``squeeze`` and ``transpose`` method to...
- #22036: BUG: Fix subarray to object cast ownership details
- #22037: BUG: Use ``Popen`` to silently invoke f77 -v
- #22038: BUG: Avoid errors on NULL during deepcopy
- #22039: DOC: Add versionchanged for converter callable behavior.
- #22057: MAINT: Quiet the anaconda uploads.
- #22078: ENH: reorder includes for testing on top of system
installations...
- #22106: TST: fix test_linear_interpolation_formula_symmetric
- #22107: BUG: Fix skip condition for test_loss_of_precision[complex256]
- #22115: BLD: Build python3.11.0rc1 wheels.
Cheers,
Charles Harris
[View Less]
I wrote a dplyr-like wrapper for Polars
<https://github.com/drhagen/tabeline/> that some of you might find
interesting.
Tabeline is in the early stages, but it already has a documentation website
<https://tabeline.drhagen.com/> and decent test coverage. It uses Polars
underneath to get the speed, but does a lot of work to smooth out Polars's
edge cases.
It can convert to/from Pandas and to/from Polars, so it is easy to slot
into an existing workflow.
Obviously, bug reports and …
[View More]other ideas are welcome!
[View Less]
Hi all,
CodraFT is an open-source generic signal and image processing software, based on Python, Qt, NumPy, SciPy and others:
https://codra-ingenierie-informatique.github.io/CodraFT/
I am pleased to announce that CodraFT v2.1.1 has been released.
This is the second public release of version 2, compatible with Python 3.7+.
CodraFT provides signal/image processing and visualisation features, and is available either as a stand-alone application or may be embedded in your own Python-Qt …
[View More]application thanks to advanced automation capabilities. CodraFT also has many I/O features, supporting a lot of images format as well as HDF5 (for saving/loading CodraFT workspace or importing any other data file).
Enjoy!
--
Always a pleasure to share with Python community, since 2008.
Pierre Raybaut
[View Less]
Hi All,
On behalf of the NumPy team, I'm pleased to announce the release of NumPy
1.23.1. NumPy 1.23.1 is a maintenance release that fixes bugs discovered
after the 1.23.0 release. Notable fixes are:
- Fix searchsorted for float16 NaNs
- Fix compilation on Apple M1
- Fix KeyError in crackfortran operator support (Slycot)
The Python versions supported for this release are 3.8-3.10. Wheels can be
downloaded from PyPI <https://pypi.org/project/numpy/1.23.1>; source
archives, …
[View More]release notes, and wheel hashes are available on Github
<https://github.com/numpy/numpy/releases/tag/v1.23.1>.
*Contributors*
A total of 7 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
- Charles Harris
- Matthias Koeppe +
- Pranab Das +
- Rohit Goswami
- Sebastian Berg
- Serge Guelton
- Srimukh Sripada +
*Pull requests merged*
A total of 8 pull requests were merged for this release.
- #21866: BUG: Fix discovered MachAr (still used within valgrind)
- #21867: BUG: Handle NaNs correctly for float16 during sorting
- #21868: BUG: Use ``keepdims`` during normalization in ``np.average``
and...
- #21869: DOC: mention changes to ``max_rows`` behaviour in
``np.loadtxt``
- #21870: BUG: Reject non integer array-likes with size 1 in delete
- #21949: BLD: Make can_link_svml return False for 32bit builds on x86_64
- #21951: BUG: Reorder extern "C" to only apply to function
declarations...
- #21952: BUG: Fix KeyError in crackfortran operator support
Cheers,
Charles Harris
[View Less]
Hi all,
CodraFT is an open-source generic signal and image processing software, based on Python, Qt, NumPy, SciPy and others:
https://codra-ingenierie-informatique.github.io/CodraFT/
I am pleased to announce that CodraFT v2.1.2 has been released.
This is a hotfix release, following the v2.1 major release (june 2022).
CodraFT provides signal/image processing and visualisation features, and is available either as a stand-alone application or may be embedded in your own Python-Qt application …
[View More]thanks to advanced automation capabilities. CodraFT also has many I/O features, supporting a lot of images format as well as HDF5 (for saving/loading CodraFT workspace or importing any other data file).
Enjoy!
--
Always a pleasure to share with Python community, since 2008.
Pierre Raybaut
[View Less]