I'm especially interested in image analysis and GUI development.
hanjinliu / impy Goto Github PK
View Code? Open in Web Editor NEWSpeed up coding/extending image analysis in Python.
License: BSD 3-Clause "New" or "Revised" License
Speed up coding/extending image analysis in Python.
License: BSD 3-Clause "New" or "Revised" License
Currently, ImgArray
has an attribute labels
which is "associable". An associable attribute means that when the ImgArray
is sliced the associable attribute will also get sliced at the correct position.
In terms of extensibility, other object should also be compatible with this strategy, such as ROI. All the associable objects should be managed by a list and sliced in _view_labels
.
Following code does not work but clearly implies what should be supported.
img = ip.zeros((100, 100, 100), axes="zyx") # create an array
img.points = [[10, 20, 30], [60, 50, 40]]
img.points # Out: Points([[10, 20, 30], [60, 50, 40]])
img[5:].points # Out: Points([[5, 20, 30], [5, 50, 40]])
In some cases we have to deal with undefined axis.
Axes
should support this kind of problem like img.axes = "##yx"
suppose the undefined axis is represented by "#".
img = ip.zeros((10, 10, 100, 100), axes="tzyx")
# This is OK. Result has "tzyx" axes.
img[[3, 6, 9]]
# This is not supported well. Returns an array without axes.
# Ideally, axes should be "#yx"
img[[3, 6, 9], [2, 5, 8]]
img = ip.zeros((10, 10, 100, 100), axes="tzyx")
# This is OK. Result has "tzyx" axes.
sl = np.random.random((10,)) > 0.5
img[sl]
# This is not supported well. Returns an array without axes.
# Ideally, axes should be "#yx"
sl = np.random.random((10, 10)) > 0.5
img[sl]
img = ip.zeros((10, 10, 100, 100), axes="tzyx")
img[np.newaxis] # should be "#tzyx"
There are many inefficient things in current version.
img.dirpath
and img.name
is very confusing. Should be img.source
or something.img.history
should be completely removed. It usually becomes useless after binary operation, stacking or other functions that need more than one image. Stop recording history will also simplify the code a lot.napari
widgets should be removed because it seems that napari
plugin development is so active that people should install what they want. Only those axes and scale related things should be retained on impy
side.Maybe I should create a new repo like Julia's AxesArray to keep things extensible enough, and use impy
as an practical extension.
Hi, I have just started out trying to import impy as ip in MSVS 16 2019 with the following statement
import impy as ip
I also tried
from impy import ALL as ip
Both statement fail with VS error that impy is not subscriptable.
Could you please address this issue.
My python 3.8 virtual environment is installed under the project repo folders via command line terminal
I have used the command pip install impy-array to install impy in the project's virtual environment.
Thanks for you help
The folder impy/.vscode/
seems to be unnecessary and includes your personal settings.
I suggest removing this folder from this repository.
Use map_overlaps
to implement tiled Wiener/Lucy deconvolution.
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.