GithubHelp home page GithubHelp logo

jmbhughes / noise_gating Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 66.21 MB

reducing shot noise using regional fourier transforms

Python 100.00%
image-processing noise-reduction astronomical-algorithms astronomical-images

noise_gating's Introduction

Hi, I'm Marcus.

noise_gating's People

Contributors

jmbhughes avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

noise_gating's Issues

Matrix size mismatch: image_section and hanning_window

Hi
Just stumbled on your toolbox looking for DeForest filter, really great job. I'm looking to use this filter on brain imaging data.

I've made it most of the way through your routines (removed arguments for now), except that the hanning filter and the image sections don't seem to be matching in size (see below). I may have a weird image stack shape, but it should otherwise work. I added +1 to the section function that slices from self.image_cube and am running it now, but I didn't think that's what you intended.

Any advice on why these are not matching?


cat@catlab:~/code/noise_gating$ python noise_gater_3d.py
Making image cube
(45, 80, 63500) #My image stack shape
Cleaning image, this may take a while!
10 35 3 #xstart, xend, xstep
10 70 3 #ystart, yend, ystep
10 63490 3 #tstart, tend, tstep
3808800 10000
Traceback (most recent call last):
File "noise_gater_3d.py", line 212, in
clean_cube = ng.clean()
File "noise_gater_3d.py", line 165, in clean
t-self.twidth//2 : t+self.twidth//2] += section
ValueError: operands could not be broadcast together with shapes (4,4,4) (5,5,5) (4,4,4)

EDIT: Ok, I see now that there's an integer divide which rounds off and can make the hanning_window different than the cube being processed. So I have to choose an even step as well as probably a larger FOV.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.