Skip to content

Instantly share code, notes, and snippets.

@takecx
takecx / read_multi_image_data.py
Last active July 4, 2019 15:04
Read multiple image data to ndarray - (n_samples,height,width,channels)
import os
import numpy as np
import glob
import cv2
image_dir = './images/'
search_pattern = '*.png'
datas = []
for image_path in glob.glob(os.path.join(image_dir,search_pattern)):
# (height,width,channels)
@takecx
takecx / out_variable_declaration.cs
Created September 13, 2018 15:45
out variable declaration sample(C# 7 new feature)
using System;
namespace out_variable_declaration_sample
{
class Program
{
static void Main(string[] args)
{
const string integerStr = "5";