Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

fslmaths invert masking

#!/bin/sh

# Make an inverse binary image mask (switch the 1s and 0’s)

# Create the inverse mask (Mark Jenkinson's approach. Very clever:
# Multiply by negative 1, then add 1). Make sure you pass in a binary mask)

fslmaths mask -mul -1 -add 1 -bin mask_inverse 

# OR use -binv flag

fslmaths mask -binv mask_inverse
Comment

PREVIOUS NEXT
Code Example
Shell :: sonarcube exclude rule via powershell 
Shell :: how to change currnet cluster config 
Shell :: fslmaths edge outline 
Shell :: fslroi 
Shell :: make[1]: [scripts/Makefile.lib:196: scripts/kconfig/zconf.tab.c] Error 127 make: *** [Makefile:534: bb.org_defconfig] Error 2 root@192.168.4.89:/usr/src/linux-4.19.94-ti-rt-r61# 
Shell :: windows launch node with variables 
Shell :: extrapolate part of video linux 
Shell :: how to find last occurrence of a pattern file 
Shell :: shell relatives path 
Shell :: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease 
Shell :: kartik krajee daterange 
Shell :: dokuwiki debug log 
Shell :: git merge branch in jenkins pipeline 
Shell :: hjhvjhv 
Shell :: terraform backed 
Shell :: manjaro error: could not lock database: File exists 
Shell :: canvas api python pypi 
Shell :: how to access system wide etc environment variable in zsh 
Shell :: manjaro set to never sleep 
Shell :: dnstwist kali linux 
Shell :: whats up with docker compose and orphan containers 
Shell :: rclone conf location on windows 
Shell :: install opam on centos 
Shell :: check for webhint version 
Shell :: clear the log folder in var linux to a max file of 500M 
Shell :: inode directory spend 
Shell :: Oops… I committed all those changes to the master branch 
Shell :: centos show volume usage 
Shell :: rename tool numeric linux 
Shell :: linux copy files with specific ending 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =