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
import glob | |
import cv2 | |
import numpy as np | |
from PIL import Image | |
fn = sorted(glob.glob('./wk/3/*.PNG')) | |
print(fn) | |
l = len(fn) | |
k = 0 |
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
%% egglang <t.egawa@gmail.com> | |
%% | |
%% 賢者からの挑戦 http://www.math4life.jp/ | |
%% 竹俣紅 Q3. | |
-module(m). | |
-compile(export_all). | |
main() -> | |
beni3(create_matrix(5, 5)). |
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
x_f = [ 0 0 9 9 9 9 9 9 9 9 -9 -9 0 0 9 9 9 9 9 9 -9 0 0 -8 -8 -8 -8 -4.5 8.0 8.0 8.0 4.5 4.5 4.5 -0.2 -0.2 -0.2 -0.2 -0.2 0.2 9.0 9.0 9.0 9.0 9.0 8.0 8.0 8.0 7.6 7.6 7.6 7.6 ] | |
y_f = [ 0 22 22 22 11 11 11 11 11 11 11 11 22 22 11 11 11 11 22 22 22 20 20 20 20 20 20 11 20 20 20 11 11 11 11 11 11.2 11.2 11 11.2 11.2 11 11 11 10.8 11 11 11 11 11 11 11 ] | |
result_f = [ 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ] | |
who_f = [ 1 1 2 2 3 3 3 3 3 3 4 4 2 2 5 5 4 4 4 4 3 2 2 3 3 3 3 1 4 4 4 5 5 5 1 1 3 3 1 4 5 3 3 3 4 1 1 1 5 5 4 4 ] | |
N = numel(x_f) | |
nx = |
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
x = [ 0 0 0 0 0 0 0 9 9 9 9 9 9 9 9 9 9 9 9 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 0 0 0 0 0 0 9 9 9 9 9 9 9 9 9 9 9 9 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 0 0 0 0 0 0 -8 -8 -8 -8 -8 -8 -4.5 -4.5 -4.5 -4.5 -4.5 -4.5 8.0 8.0 8.0 8.0 8.0 8.0 4.5 4.5 4.5 4.5 4.5 4.5 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 -0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 8.8 8.8 8.8 8.8 8.8 8.8 9.0 9.0 9.0 9.0 9.0 9.0 9.0 9.0 9.0 8.0 8.0 8.0 7.8 7.8 7.8 7.6 7.6 7.6 7.6 7.6 7.6 7.4 7.4 7.4 ] | |
y = [ 0 22 22 22 22 22 22 22 22 22 22 22 22 11 11 11 11 11 11 11 11 11 11 |