mcanthony / mask Goto Github PK
View Code? Open in Web Editor NEWThis project forked from daviddoria/mask
A Mask image type for ITK
This project forked from daviddoria/mask
A Mask image type for ITK
Obtaining the Source Code ------------------------- Once you clone this repository, you'll have to also: git submodule update --init --recursive to get the code in ITKHelpers/ and ITKHelpers/Helpers/ that this code relies on. If this command gives you trouble (known problem with mysysgit), instead of git clone ... use git clone --recursive ... and then no "git submodule update ..." is required. Building -------- This repository does not depend on any external libraries. The only caveat is that it depends on c++0x/11 parts of the c++ language used in the Helpers sub-sub-module. For Linux, this means it must be built with the flag gnu++0x. For Windows (Visual Studio 2010), nothing special must be done. Usage ----- There are two main files in this repository - Mask.h and MaskOperations.h. Mask.h contains a Mask class. This class is intended to indicate pixels in an image that are "holes", and those that are "valid". A custom file format has been developed to make using existing mask images with this class very easy. Simply create a file with the extension .mask, and in it place three things: hole [hole pixel value] valid [valid pixel value] maskImageFileName Consider that you have a mask.png with valid pixels indicated in white and hole pixels indicated in black. Create a file mymask.mask and in it place hole 0 valid 255 mask.png You can then read this file using: Mask::Pointer mask = Mask::New(); mask->Read("mymask.mask"); and everything is setup appropriately. In addition to the Mask class, there is a MaskOperations namespace that contains many functions for performing operations where it is important to consider masked pixels.
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.