This file contains hidden or 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
# .cursorrules | |
# Development Steps for CLI Application in Go | |
## 1. Overall Design | |
- Define the purpose and scope of the CLI application. | |
- Identify the target audience and their needs. | |
- Outline the main features and functionalities. | |
- Create a high-level architecture diagram. | |
- **Improve Specifications/Features:** |
This file contains hidden or 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
COMPILER = g++ | |
CFLAGS = -g -MMD -MP -Wall -Wextra -Winit-self -Wno-missing-field-initializers | |
ifeq "$(shell getconf LONG_BIT)" "64" | |
LDFLAGS = | |
else | |
LDFLAGS = | |
endif | |
LIBS = | |
INCLUDE = -I./include | |
TARGET = ./bin/$(shell basename `readlink -f .`) |
This file contains hidden or 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 numpy as np | |
import cv2 | |
orig = cv2.imread('src.png').astype(np.float32) | |
width, height, _ = orig.shape | |
center_x, center_y = width/4, height/2 | |
blur, iterations = 0.008, 20 | |
map_x1 = np.fromfunction(lambda y, x: x, (width, height), dtype=np.float32) | |
map_y1 = np.fromfunction(lambda y, x: y, (width, height), dtype=np.float32) |