All Questions
6
questions
0
votes
1
answer
526
views
Image color-moment extractor [closed]
I was just wondering if there is a way to speed up the performances of this for loops in Python.
I'm trying to process an image to get the color-moments without using libraries.
It takes about 12sec ...
3
votes
0
answers
93
views
Data set generation with Python and Matplotlib
I want to use Python and Matplotlib to create a data set of images. I want to do this by transforming the plot to a numpy matrix. At the moment it takes about 0.1 second to generate 100 images of size ...
10
votes
1
answer
19k
views
Looping over pixels in an image
I have the following code which iterates over all pixels of an image and does some manipulations on two images of the same size. I would like to speed it up and to avoid iterating over the positions ...
20
votes
4
answers
17k
views
Processing an image to extract green-screen mask
I am using OpenCV to process an image, and in my code, I have to check / edit each pixel separately:
...
24
votes
2
answers
58k
views
Crop black border of image using NumPy
Objective: Crop the image so only the number stays in the image
Problem: Slow Performance
I have code that crops an image.
The image pixels are 0 or 255. There are no values between.
The ...
7
votes
1
answer
12k
views
"Histogram of Oriented Gradients" (HOG) feature detector for computer vision
Here is a function that I've only slightly modified from its original context, found here.
Before mentioning anything else, it should be noted that I'm desperately trying to optimize this code for ...