Questions tagged [image]

This tag is for questions related to the loading, formatting, saving, compression, and display of data representing pictures.

Filter by
Sorted by
Tagged with
8 votes
2 answers
406 views

Image Rotation and Transpose Functions Implementation in C++

This is a follow-up question for Gaussian Fisheye Image Generator Implementation in C++ and An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++. I am trying to ...
JimmyHu's user avatar
  • 4,708
3 votes
1 answer
79 views

Gaussian Fisheye Image Generator Implementation in C++

This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++ and Three dimensional gaussian image generator in C++. I am trying to make a ...
JimmyHu's user avatar
  • 4,708
1 vote
1 answer
64 views

An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++

This is a follow-up question for Multi-dimensional Image Data Structure with Variadic Template Functions in C++. Considering the suggestion from G. Sliepen: Make everything work for more than 5 ...
JimmyHu's user avatar
  • 4,708
5 votes
1 answer
273 views

Multi-dimensional Image Data Structure with Variadic Template Functions in C++

This is a follow-up question for Three dimensional data structure in C++. I am trying to implement multi-dimensional image data structure with variadic template functions. For example, ...
JimmyHu's user avatar
  • 4,708
5 votes
2 answers
820 views

Three dimensional data structure in C++

This is a follow-up question for Three dimensional gaussian image generator in C++. Considering the suggestion from G. Sliepen: Structure of a 3D image Your 2D ...
JimmyHu's user avatar
  • 4,708
5 votes
2 answers
517 views

Three dimensional gaussian image generator in C++

This is a follow-up question for Two dimensional gaussian image generator in C++. Besides the two dimensional case, I am trying to implement three dimensional gaussian image generator which with ...
JimmyHu's user avatar
  • 4,708
3 votes
0 answers
54 views

OpenCV for Faster Background Recovery in Watermark Removal

I am working on a watermark removal project using OpenCV in C++. The goal is to recover the background from a composite image by separating it from the foreground (watermark). The code processes the ...
Lucas's user avatar
  • 31
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 ...
Ishaan Vatus's user avatar
3 votes
1 answer
140 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. ...
Harith's user avatar
  • 5,516
6 votes
4 answers
1k 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 ...
Harith's user avatar
  • 5,516
0 votes
1 answer
264 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 ...
KermitTheFrog's user avatar
1 vote
0 answers
61 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 ...
Seanny123's user avatar
  • 1,527
4 votes
2 answers
148 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 ...
Ξένη Γήινος's user avatar
4 votes
2 answers
382 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 ...
sdave's user avatar
  • 143
1 vote
1 answer
121 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: ...
Dushyant Patil's user avatar
7 votes
1 answer
668 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 ...
S. M.'s user avatar
  • 173
6 votes
1 answer
372 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? ...
Dushyant Patil's user avatar
5 votes
1 answer
188 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 ...
Lion Lai's user avatar
  • 297
17 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 ...
Dornteufel's user avatar
6 votes
2 answers
178 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 ...
GBA's user avatar
  • 63
5 votes
4 answers
871 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++. ...
jigglypuff256's user avatar
4 votes
1 answer
183 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, ...
Nik's user avatar
  • 233
1 vote
0 answers
35 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 ...
Cyril N.'s user avatar
  • 245
2 votes
0 answers
196 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 ...
gazoh's user avatar
  • 3,249
4 votes
1 answer
181 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 ...
Colin's user avatar
  • 107
2 votes
2 answers
138 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 ...
FrankSintara's user avatar
5 votes
1 answer
314 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. ...
Joshua Bursill's user avatar
1 vote
1 answer
123 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 ...
David Lin's user avatar
7 votes
1 answer
164 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 ...
Fynn's user avatar
  • 173
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, ...
Omar Morales Rivera's user avatar
3 votes
1 answer
452 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 ...
Sam Miller's user avatar
3 votes
1 answer
82 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 ...
Jacob's user avatar
  • 133
4 votes
1 answer
230 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 ...
Stephen Williams's user avatar
2 votes
1 answer
731 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 ...
Clement B's user avatar
3 votes
1 answer
699 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 ...
Digital Farmer's user avatar
1 vote
2 answers
193 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: ...
user877329's user avatar
3 votes
1 answer
853 views

UIImage downscale and compression

getFinalImageData(:UIImage) takes a UIImage and downscales its size dimensions (to 400 ...
trndjc's user avatar
  • 133
2 votes
2 answers
213 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 ...
JimmyHu's user avatar
  • 4,708
3 votes
1 answer
207 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 ...
Denis Cherepanov's user avatar
4 votes
1 answer
88 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 ...
Jason Roman's user avatar
3 votes
3 answers
1k views

Function to resize an image whilst maintaining aspect ratio

I have the following function: ...
GAP2002's user avatar
  • 225
2 votes
1 answer
173 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. ...
Jastcher's user avatar
2 votes
1 answer
792 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 ...
Ξένη Γήινος's user avatar
5 votes
3 answers
134 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 ...
AidanTrent's user avatar
7 votes
1 answer
895 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): <...
Dornteufel's user avatar
3 votes
1 answer
1k 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 ...
Darth-CodeX's user avatar
4 votes
1 answer
1k 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 ...
Bloodday's user avatar
  • 143
2 votes
2 answers
651 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 <...
JimmyHu's user avatar
  • 4,708
0 votes
1 answer
604 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: ...
code0x00's user avatar
  • 101
2 votes
1 answer
129 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 ...
Valthalin's user avatar
  • 121

1
2 3 4 5
15