o0o0o0o0o0o0o / image-processing-from-scratch Goto Github PK
View Code? Open in Web Editor NEWThis project contains some interesting image processing algorithms that were wrote in python and c++ from scratch.
License: MIT License
This project contains some interesting image processing algorithms that were wrote in python and c++ from scratch.
License: MIT License
Hi, I have a question about the function convlove()
"val = (filter * pad_mat[j * strides[1]:j * strides[1] + filter_size[0],
k * strides[0]:k * strides[0] + filter_size[1]]).sum()"
why you multiply "j" with stride[i]? In the "for j in range(0, mat_size[0], strides[1]):" , there is a strides[1]. I'm confused about it. Thank you!
{
"resource": "/D:/Github/clone path/image-processing-from-scratch/sift/SIFT.py",
"owner": "python",
"code": "unsubscriptable-object",
"severity": 8,
"message": "Value 'info.shape' is unsubscriptable",
"source": "pylint",
"startLineNumber": 507,
"startColumn": 26,
"endLineNumber": 507,
"endColumn": 26
}
I tried using your codes for PCA&SVD and tested it on 0.jpg (21.9 kB) image provided, I found out that in spite of using PCA, the size of image 0_.jpg (73.1 kB) is not reduced.
Any leads will be helpful
up你好,b站来的。有一些SIFT代码问题求指教:
1、GuassianKernel( ) 求高斯卷积核的时候为啥不需要归一化咧?
2、LocateKeyPoint()函数中,threshold = 0.5contrastThreshold/(n255SIFT_FIXPT_SCALE),计算差分图像中的噪点阈值时候,这个公式与视频中所讲的0.50.4/n不同,是怎么来的啊?
3、LocateKeyPoint()函数中,计算邻域极值的时候,我注意到这个邻域不是 33,而是34?这是为啥呢?对于i是i-1,但对于j就变成了j+2,不应该是j+1嘛?
eight_neiborhood_prev = img_prev[max(0, i - 1):min(i + 2, img_prev.shape[0]), max(0, j - 1):min(j + 2, img_prev.shape[1])] eight_neiborhood = img[max(0, i - 1):min(i + 2, img.shape[0]), max(0, j - 1):min(j + 2, img.shape[1])] eight_neiborhood_next = img_next[max(0, i - 1):min(i + 2, img_next.shape[0]), max(0, j - 1):min(j + 2, img_next.shape[1])]
Traceback (most recent call last):
File "HoughTransform.py", line 94, in <module>
lines = lines_detector_hough(edge)
File "HoughTransform.py", line 45, in lines_detector_hough
eight_neiborhood = accumulator[max(0, result[0,i] - halfThetaWindowSize + 1):min(result[0,i] + halfThetaWindowSize, accumulator.shape[0]), max(0, result[1,i] - halfDistWindowSize + 1):min(result[1,i] + halfDistWindowSize, accumulator.shape[1])]
TypeError: slice indices must be integers or None or have an __index__ `method`
Traceback (most recent call last):
File "/home/zsc/桌面/image-processing-from-scratch/sift/SIFT.py", line 557, in
drawLines(X1,X2,Y1,Y2,match[0][:,0],result)
File "/home/zsc/桌面/image-processing-from-scratch/sift/SIFT.py", line 503, in drawLines
img = Lines(img,info)
File "/home/zsc/桌面/image-processing-from-scratch/sift/SIFT.py", line 491, in Lines
result[i,j] = color
ValueError: cannot copy sequence with size 3 to array axis with dimension 4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.