Questions tagged [image]
This tag is for questions related to the loading, formatting, saving, compression, and display of data representing pictures.
719
questions
16
votes
7
answers
3k
views
Image Processing Application in C
I'm making a image processing application in c from scratch using P6 ppm images, I want some input on my code before I start adding more features to prevent it from falling apart if it's not well ...
3
votes
1
answer
136
views
Filter: BMP Image Filtering Tool - follow-up
This is a follow-up of this quesiton: Filter: BMP Image Filtering Tool
Changes:
Added comments where necessary.
Added checks for integer overflow.
Added support for input and output redirection.
...
6
votes
4
answers
966
views
Filter: BMP Image Filtering Tool
Filter is a C program that allows you to apply filters to BMP images.
Usage:
Usage: filter [OPTIONS] <infile> <outfile>
Review Goals:
General coding ...
0
votes
1
answer
174
views
WordPress Plugin for WebP/AVIF Image Conversion
I'm looking for feedback on a WordPress plugin I developed for automatically converting images to WebP and AVIF formats. The goal is to optimize image loading performance.
The plugin has the following ...
1
vote
0
answers
56
views
Convolution to reduce popcorn noise in black and white video
I have a black & white video as a tensor with the shape [Time, Width, Height] with popcorn noise and I would like to reduce the noise by naively convolving along the time dimension.
Using a ...
4
votes
2
answers
135
views
NumPy script to convert BGR to HSL and back
This is a NumPy script that converts BGR arrays to HSL arrays and back, without using OpenCV. Input and output values are arrays of 3 dimensions with values ranging from 0 to 1, the shape of the ...
4
votes
2
answers
351
views
Analyzing Product Photography Quality: Metrics Calculation -python
I am working on analyzing product photography data on the website and would like to gather feedback on my approach. The goal is to calculate various image metrics to assess the quality of product ...
1
vote
1
answer
95
views
Corner detect takes long time to run
I am using OpenCV’s findchessboardcornersSB function to find the corners in the image. I am using below code/ header file:
...
7
votes
1
answer
659
views
Remove hot-spots from picture without touching edges
In the picture below there are some regions which are very bright (i.e. more white). Some bright regions are wide and some are narrow or thin. The red box covers one such wide bright spot, and blue ...
6
votes
1
answer
279
views
Image stitching using SIFT keypoint descriptor and homography matrix
I have written a code to stitch 2 images using SIFT keypoint descriptor and homography matrix for perspective transform. Are there any areas where code an be improved or optimized?
...
5
votes
1
answer
163
views
A simple Image class utilizing the XTensor library
I've been teaching myself C++, and I recently created a simple Image class that makes use of the XTensor library. With my Image ...
16
votes
4
answers
2k
views
Make an image where pixels are colored if they are prime
This code creates a black-and-white image of variable size where the n-th pixel is white if n is a prime number and black if it isn't. It works, but I wonder if it is well written or if it could be ...
6
votes
2
answers
135
views
First attempt at making a sobel edge detection filter in c
I made a borders filter in C. It works properly, but I think it could be optimized and better designed; the formatting is abysmal. It uses too many lines for the border cases and has too many ...
5
votes
4
answers
588
views
RGB Image Utility Class
I am writing a utility class to store RGB images and do a few utility functions as a way to learn C++.
...
4
votes
1
answer
148
views
Efficiently detect locations of small pixel signatures in image
I'm trying to write a function in python that detects a pixel signature in an image. The pixel signature is a small image of a maximum of 16 pixels of different rectangular shapes, e.g. 1x3 pixels, ...
1
vote
0
answers
27
views
Detecting Retina picture to create a half sized image
When a user using a Retina display makes a screenshot and pastes it into the browser, the size of the image is twice the selected area. This is expected as a Retina display, but the pasted image ...
2
votes
0
answers
160
views
Pillow plugin adding support for the QOI image format
Pillow is a popular library for handling images in Python. My code adds support for the QOI image format to Pillow.
Aside from loading and saving QOI images, my goal was to write a streaming decoder ...
4
votes
1
answer
166
views
Creating an image of the Mandelbrot set in Rust
I'm in the process of familiarizing myself with Rust. In order to get some practice, I decided to make a program that generates images of the Mandelbrot set.
The function I use to generate the image ...
2
votes
2
answers
98
views
pixelating images
I'm a hobby programer and I had an idea for pixelating images and I wrote it.
I was wondering how would a better programer write the same function.
I want to learn and I think that this would help me ...
5
votes
1
answer
228
views
Grabbing youtube thumbnails from urls
I made some C# code to grab youtube thumbnails from urls, I originally made this in python took some time converting it to C#. I am VERY new to C# and did this with minimal help.
...
1
vote
1
answer
107
views
How to using custom colormap with pixel calculation, gray scale value by opencv and make it workable on camera [closed]
I tried to implement the mcolor colormap in the paper
at page 8 to 10.
I developed the code to process a image file and it works ok.
Now, I want to adopt this image processing method to the camera ...
7
votes
1
answer
145
views
Grepping for text in images
I built a small wrapper script around pytesseract, that lets you
check if an image contains some text, or pattern
look for images, that contain some text, or pattern
High Level Approach
I get the ...
9
votes
1
answer
1k
views
Convert image into ASCII art
I made a python script that takes an image and converts it into an ASCII-art representation and saves it as a .txt file.
The logic is somewhat simple. It resizes the image to a manageable size, ...
3
votes
1
answer
379
views
Generating responsive image html with php?
As a beginner in php, I welcome you feedback on improving or simplifying the following php code that generates this responsive image html (image sizes and formats are auto-generated using Gulp). For ...
3
votes
1
answer
79
views
Radial gradient image generator
A function to create a radial gradient from one rgb colour to another and using rayon to improve performance. Are there better way to convert between some of the types / any obvious performance ...
4
votes
1
answer
213
views
Converts image from one type to another
This script first looks through a specified folder path for image files that have a given extension and removes any periods that might be in those file names. It also adds those sanitized file names ...
2
votes
1
answer
523
views
Matching corresponding masks of objects between 2 images
Here is a program that processes 2 grayscale images. Both represent the position of objects, in the form of multiple masks per image. Each mask is a shape with one color delimiting it, with 0 (or ...
3
votes
1
answer
601
views
Resize image, blur image and overlay image
This code has the function of removing worthless borders from the original image and then:
Generate a 1080x1080 image (Instagram default) to be used as a
blurred background.
Generate an image with a ...
1
vote
2
answers
156
views
Finding the cheapest path between two points using Dijkstra
I am trying to use Dijkstra to find the cheapest path between two pixels in an image.
Implementation:
...
3
votes
1
answer
666
views
UIImage downscale and compression
getFinalImageData(:UIImage) takes a UIImage and downscales its size dimensions (to 400 ...
2
votes
2
answers
206
views
No Reference Image Quality Assessment for Video in Matlab
I am trying to perform the No-Reference Image Quality Assessment (NR-IQA) calculation on video. Several NR-IQA methods including Naturalness Image Quality Evaluator (NIQE), Perception based Image ...
3
votes
1
answer
198
views
Server code to upload and save images to cloud storage
Is there a way to beautify my code? It works but there repeated blocks and I am not sure that I'm using some functions in the right way. I'm not new to JavaScript but I want to improve it and get rid ...
4
votes
1
answer
85
views
Weird things to do to an image
Here is a program I wrote to take an image and do weird things to it. Is there any more weird things I can add?
Right now I have:
Chop the image
Flip the image (up/down and left/right)
Rotate the ...
3
votes
3
answers
1k
views
Function to resize an image whilst maintaining aspect ratio
I have the following function:
...
2
votes
1
answer
155
views
c++ CLI Ascii image renderer
I am wondering if this is written well or not, I am just a beginner and would like some feedback what should I improve on. Thanks.
...
2
votes
1
answer
567
views
Python script to convert scripts to png files
I have written a Python script that converts scripts to png files, entirely by myself without anybody's help.
A picture is worth more than a thousand words so I will let the picture do the ...
5
votes
3
answers
115
views
Creation & pixel manipulation of 24 bit TARGA
I wrote this code to get familiar with structs in C. It allows the creation and exporting of a 24 bit TGA image and changing the color of individual pixels.
My concern is the ...
6
votes
1
answer
810
views
Create an image made of many circles
I have written some Python code for creating an image made of lots of circles. It works, but I wonder if it could be made faster, shorter or more pythonic somehow.
Example image (took 28 seconds):
<...
3
votes
1
answer
992
views
C++ program that replaces given color in an image using OpenCV
I have created a C++ program that changes the color of a pixel to another color. But the main feature is that it not only changes 100% accurate colors; instead it matches two colors by using a method ...
4
votes
1
answer
967
views
Memory leak I can't identify using Bitmap and Graphics classes
I have some parallel.for one inside another.
the last parallel.for have a normal for that ...
2
votes
2
answers
594
views
Checking image size in C++
This is a follow-up question for 3D Inverse Discrete Cosine Transformation Implementation in C++. After checking G. Sliepen's answer, I am trying to update the part of width and height checking of <...
0
votes
1
answer
538
views
Upload multiple images using react and axios
I trying to upload multiple images about (5000 of size upto 50mb) and trying to figure out what would be the best way to do it.
right now i have this code:
...
2
votes
1
answer
105
views
Windows 10 wallpaper-scroller script with Gif support
Intro:
Hello, I'm a python beginner. I haven't had anyone use my code or anything. I want to improve and become a "professional python developer". I thank you for taking the time to help me ...
3
votes
1
answer
133
views
Dictionary based non-local mean implementation in C++
This is a follow-up question for Manhattan distance calculation between two images in C++ and Dictionary based non-local mean implementation in Matlab. For learning C++20 and researching purposes, I ...
2
votes
1
answer
2k
views
React app that uses hooks and shows a random image every two seconds
React beginner here. I'm practicing state and hooks, and I wanted to create a small app that every two seconds fetches an image URL from a service (that returns random images) and shows the returned ...
2
votes
2
answers
691
views
Duplicating 8-bit BMP with C++
Trying to create a simple image processing library in pure C++. Here is the first part, duplicating 8-bit BMP images (taken from Udemy in hybrid c/c++ but I modified it a bit). Any comments are ...
2
votes
1
answer
213
views
Carousel in react
I implemented this carousel component in react:
...
3
votes
2
answers
175
views
Serve rescaled jpg images on demand with myphoto!500.jpg syntax (here 500px-width rescaled)
On web pages, obviously we cannot serve large photos (e.g. 4000x4000px) and just let CSS do the resizing: it would be too slow for end users and too bandwidth-consuming for the server.
So it's ...
2
votes
1
answer
211
views
Program which loads a colored image to the screen, converts it to HSI and displays each component in separate grayscale image
As part of an assignment, I need to write a program which loads a colored image to the screen, converts it to HSI and displays each component in separate grayscale image.
My program:
...
4
votes
1
answer
628
views
Get image value total
Below is my code:
...