Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low pass filter images #234

Open
raacampbell opened this issue Jun 28, 2019 · 0 comments
Open

Low pass filter images #234

raacampbell opened this issue Jun 28, 2019 · 0 comments
Labels
enhancement good beginner issue Good issue for a beginner to tackle

Comments

@raacampbell
Copy link
Collaborator

Using the console I tried LP filtering images:

In [14]: tasty.listIngredients()                                                                                                                                    
Out[14]: ['AL021_190617_122619_chan_02.tiff']

In [15]: tasty.returnIngredientByName("AL021_190617_122619_chan_02.tiff")._data = gaussian_filter(tasty.returnIngredientByName("AL021_190617_122619_chan_02.tiff")._data
    ...: ,sigma=2)                                                                                                                                                      

In [16]: tasty.initialiseAxes()                

Then to update histogram:

In [19]:  tasty.returnIngredientByName("AL021_190617_122619_chan_02.tiff").histogram= tasty.returnIngredientByName("AL021_1
    ...: 90617_122619_chan_02.tiff").calcHistogram()                                                                       

In [20]: tasty.initialiseAxes()  

This works but there are two problems. Firstly, it would be nice to have an refresh_histogram method in the image stack ingredient. Secondly, we should benchmark the above filter operations. On this 3 GB image stack it took maybe 3 or 4 minutes on a laptop to filter. That seems slow. Let's compare with MATLAB and see if there are alternatives to speed it up.

@raacampbell raacampbell added enhancement good beginner issue Good issue for a beginner to tackle labels Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good beginner issue Good issue for a beginner to tackle
Projects
None yet
Development

No branches or pull requests

1 participant