Giter Site home page Giter Site logo

imagenoisethreshold's Introduction

ImageNoiseThreshold

A script that determines if 3D images are noisy or not based on the number of non-zero pixels in the image. Reads in the images from their locations given in a text file, then outputs if each image is clean/not noisy (True) or noisy (False) in an output text file.

How to Run

To run the script, the expected format of the command is

python noise.py [input text file] [threshold*] [2D or 3D] [output text file]

The input text file holds the paths to all the images to check for noise.

The threshold is the cutoff between a clean/not noisy image and a noisy one. We've have used 1.2 x 10^8, but 1.4 or 1.6 would work as well.

2D or 3D tells the script what type of images it should be expecting.

The output text file will hold the output for each image in the input text file.

  • NOTE: The threshold input is implicitly multiplied by 10^8 (or 100 million)

Input Format

In the input text file, the script expects the format to have one image file path per line. For example,

folder1/image_file_1.tiff
folder2/image_file_2.tiff

Output Format

The output file will be written as

[image file name],True or False

True indicates a clean image and False indicates a noisy image

TODO

  • Add in the ability to choose between using the non-zero count method or the sum of pixel intensity method to determine the cutoffs
  • If wanted, add print statements or a debug mode to show what the script is doing
  • See if there are ways to make the script run faster

imagenoisethreshold's People

Contributors

parkerbrandt avatar

Watchers

 avatar

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.