Skip to content

Instantly share code, notes, and snippets.

View clin045's full-sized avatar

Christopher Lin clin045

View GitHub Profile
@clin045
clin045 / remove_dust.py
Created February 19, 2021 02:38
Remove dust from an image with IR information in the alpha channel
import cv2
import numpy as np
import argparse
from pathlib import Path
import sys
parser = argparse.ArgumentParser(description="Remove dust from an image with IR information in the alpha channel")
parser.add_argument('image',
# Install python package
python setup.py install --single-version-externally-managed --record=record.txt
# Install PALM
git clone git@github.com:andersonwinkler/PALM.git
sed -i "s/WHICH_TO_RUN=1/WHICH_TO_RUN=2/g" ./PALM/palm
sed -i "s/\/opt\/r16b\/bin\/matlab/matlab/g" ./PALM/palm
cp -r ./PALM $PREFIX/
ln -s $PREFIX/PALM/palm $PREFIX/bin/
package:
name: nimlab
version: 0.1
source:
path: ../nimlab/
requirements:
build:
FROM jupyter/scipy-notebook
USER root
# add os packages
RUN apt-get -y update && apt-get install -y --no-install-recommends\
apt-utils \
bash-completion \
curl \
gnupg \