Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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 :: excape all quates awk in file 
Shell :: create raid5 linux 
Shell :: solana get version 
Shell :: how to stash git yarn.lock 
Shell :: archlinux Unable to install Yay, Paru and Endeavouros Keyring 
Shell :: uninstall zabbix java gateway 
Shell :: files still appear as modified after addition to .gitignore 
Shell :: create json from console 
Shell :: linux server disable embeded screen 
Shell :: install micro terminal 
Shell :: prepend xml to svg sed 
Shell :: grep check line exists in file 
Shell :: unzip start of central directory not found 
Shell :: install check_mk ubuntu 20.04 
Shell :: increase filesystem space in aix 
Shell :: Ranges 1 
Shell :: command to make multiple nested directories 
Shell :: does electron app work in ubuntu 
Shell :: kali linux 2016 virtualbox password 
Shell :: powershell 
Shell :: node specific version install 
Shell :: how to configure the smtp server in ubuntu 
Shell :: download teamviewer for ubuntu 20.04 
Shell :: git move latest commit to new branch 
Shell :: ubuntu xampp apache web server running 
Shell :: append string to end of file name bash 
Shell :: ver ayuda de comandos en linux 
Shell :: install ssl lampp in bash terminal 
Shell :: prisjakt 
Shell :: linux log serial to binary file 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =