This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// GestureImageZoomViewController.swift | |
// | |
// Created by Ytse Jam on 2017/10/21. | |
// Copyright © 2017 Ytse Jam. Licensed under MIT. | |
// | |
import UIKit | |
class GestureImageZoomViewController: UIViewController, UIScrollViewDelegate { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/questions/26681713/convert-mat-to-array-vector-in-opencv | |
std::vector<uchar> array; | |
if (mat.isContinuous()) { | |
array.assign((uchar*)mat.datastart, (uchar*)mat.dataend); | |
} else { | |
for (int i = 0; i < mat.rows; ++i) { | |
array.insert(array.end(), mat.ptr<uchar>(i), mat.ptr<uchar>(i)+mat.cols); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on 2020/01/31 | |
Description: | |
Show digital filters frequency responce. | |
Based on "Cookbook formulae for audio EQ biquad filter coefficients" | |
by Robert Bristow-Johnson. | |
Author: Ytse Jam | |
Copyright © 2020 Ytse Jam. Licensed under MIT. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on 2020/01/31 | |
Description: | |
Show digital filters frequency responce. | |
Based on "Cookbook formulae for audio EQ biquad filter coefficients" | |
by Robert Bristow-Johnson. | |
Author: Ytse Jam | |
Copyright © 2020 Ytse Jam. Licensed under MIT. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on 2020/02/13 | |
Description: WAVE file read / write. | |
@author: Jam Ytse | |
""" | |
import wave | |
from scipy import fromstring, int16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void button1_Click(object sender, EventArgs e) | |
{ | |
// Create instance of System.Diagnostics.Process | |
var proc = new System.Diagnostics.Process(); | |
// Set path to exe file. | |
proc.StartInfo.FileName = @"[path to exe]"; | |
// Set argument of exe | |
proc.StartInfo.Arguments = arg; |