--
You received this message because you are subscribed to the Google Groups "Warp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to warp-em+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/warp-em/1acb024d-1be1-4341-ba91-fb89759467adn%40googlegroups.com.
Some camera sensors have small defective regions that can’t be corrected using a gain reference. They won’t affect alignments if they’re small, but can be annoying, especially in tomography. Warp can use a defect map to fill those regions with the average value of their surroundings. The defect map must have the same dimensions as the gain reference, and contain pixel values = 1 in the defect regions and = 0 everywhere else. The same flip X/Y and transpose operations will apply to the gain reference and defect map. Alternatively, you can have Warp create the defect map image based on a text description of rectangular regions. To do this, click Select defect map, change the file filter to *.txt, and select the text file. In this file, every line should describe a rectangle in the following format:
[bottom left corner X] [bottom left corner Y] [width] [height]The X and Y coordinates start with 0, not 1. The columns are separated by spaces or tabs. For instance,
0 3709 3838 1will mask the top-most row of a 3838×3710 px sensor. Once the file is loaded, Warp will generate the defect map image and save it under [project directory]/defectmap/defects.tif and automatically change the file path. Please check this image to make sure the mask is correct. For future projects using data from the same sensor, you can just reuse this TIFF file.