forked from daviddoria/Mask
Tabshi/Mask
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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: holeValue validValue maskFileName 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 0 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.
About
A Mask image type for ITK
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published