This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
.axis path, .axis line { | |
fill: none; |
-- in response to https://www.reddit.com/r/haskell/comments/3u5s4e/is_there_a_way_to_write_the_frames_of_a_gloss/ | |
import Codec.Picture.Types (Image(..), PixelRGBA8) | |
import Codec.Picture.Png (writePng) | |
import Control.Monad (forM_) | |
import Data.Vector.Storable (Vector, unsafeFromForeignPtr0) | |
import qualified Graphics.Gloss as Gloss | |
import qualified Graphics.Gloss.Rendering as Gloss | |
import Graphics.Rendering.OpenGL.Raw -- as gl* | |
import qualified Graphics.UI.GLFW as GLFW |
license: mit |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
import cv2 | |
import numpy as np | |
def create_blank(width, height, rgb_color=(0, 0, 0)): | |
"""Create new image(numpy array) filled with certain color in RGB""" | |
# Create black blank image | |
image = np.zeros((height, width, 3), np.uint8) | |
# Since OpenCV uses BGR, convert the color first |
#!/usr/bin/python | |
""" | |
Installation: Get the *Miniconda* Python Distribution - not the Python distrubution from python.org! | |
- https://conda.io/miniconda.html | |
Then install modules: | |
- `cd ~/miniconda3/bin` | |
- `./conda install numpy pandas matplotlib` |
# BSD 3-Clause License | |
# | |
# Copyright (c) 2020, Cosven | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. |
from tkinter import * | |
from PIL import ImageTk,Image | |
import time | |
import os | |
targetImageWidth = 850 | |
targetImageHeight = 400 | |
inputImageWidth = 0 | |
inputImageHeight = 0 |
/* | |
* John Conway's Game of Life. | |
* | |
* This is written for POSIX, using Curses. Resizing of the terminal is not | |
* supported. | |
* | |
* By convention in this program, x is the horizontal coordinate and y is | |
* vertical. There correspond to the width and height respectively. | |
* The current generation number is illustrated when show_generation is set. | |
* |