[Dart] 이미지 blur 처리 함수 구현 (Image Blur Algorithm)
ChatGPT에서 가져옴. void blur(List image, int kernelSize) { int kernelRadius = kernelSize ~/ 2; int width = image[0].length; int height = image.length; List tempImage = List.generate(height, (_) => List.filled(width, 0)); for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { int sum = 0; int count = 0; for (int ky = -kernelRadius; ky = 0 && py < height) { sum += image[py][px]; count++;..
Flutter/LED 검사(Windows)
2023. 5. 1. 04:07