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
5 votes
1 answer
114 views

Creating random music covers using Conways Game of Life algorithm

(A sample cover art follows.) I'm currently working on replacing all the covers of my music files to have a unified theme, and I've started this project in Java to refresh my knowledge after a gap of ...
8 votes
2 answers
415 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 ...
3 votes
1 answer
81 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 ...
10 votes
1 answer
134 views

Perl gradient noise generator

I'm working on 2-D top-down graphics engine, and need a way to simulate clouds. My idea was that I could create a layer comprised of a matrix of rectangles whose alpha value would be picked from a ...
5 votes
2 answers
205 views

Serve rescaled jpg images on demand with myphoto!500.jpg syntax (here 500px-width rescaled)

On web pages, obviously large photos (e.g. 4000x4000px) cannot be served with a reliance on CSS to do the resizing: it would be too slow for end users and too bandwidth-consuming for the server. So it'...
5 votes
1 answer
313 views

Getting color information from an image

I am working on a site that themes itself based on images / logos. I have made a utility class that gets the colors from an image, shown below. I am fairly new to OOP with PHP, and I'm looking for ...
3 votes
2 answers
150 views

Image upload filter for PHP

I am trying to improve my file upload handler filter. Environment Since any client-side validation is easily circumvented, there is none in this code, for ease of testing. Not even an ...
1 vote
1 answer
65 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 ...
5 votes
1 answer
275 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, ...
5 votes
2 answers
821 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 ...
5 votes
2 answers
518 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 ...
4 votes
3 answers
2k views

Two dimensional bicubic interpolation implementation in C

This is a follow-up question for Two dimensional bicubic interpolation implementation in Matlab and Two dimensional gaussian image generator in C. Besides the Matlab version code, I am attempting to ...
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 ...
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
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. ...
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 ...
0 votes
1 answer
270 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
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 ...
2 votes
1 answer
471 views

PHP / Laravel - Using Python to image manipulation

I have a simple job class in Laravel, that will do the following: Get all the images in a folder /original Perform some image manipulation on each image Save each ...
4 votes
2 answers
153 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
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 ...
1 vote
1 answer
123 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
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 ...
6 votes
1 answer
381 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? ...
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 ...
2 votes
1 answer
5k views

"Rasterbation" function to split an image into a grid

I want to create a function that splits an image into many separate blocks that when put together look like the image as a whole, often called a Rasterbator. Given the number of tiles for height and ...
5 votes
1 answer
190 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 ...
6 votes
2 answers
180 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
894 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
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, ...
7 votes
1 answer
1k views

Read quantization tables from JPEG files

I'm developing an application that will hide information inside the quantization tables of JPEG files. It's called DQTsteg, if you want to know more about what I'm attempting to do. Right now I'm ...
1 vote
0 answers
36 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
197 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
186 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
141 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
321 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. ...
0 votes
1 answer
118 views

Powershell duplicate image scanner

So I have made this Duplicate image scanner using powershell. It will operate using the SHA256 hashes of the files. Any tips or suggestions on making this more dynamic/robust/efficient or adding new ...
1 vote
1 answer
126 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
166 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 ...
3 votes
1 answer
874 views

UIImage downscale and compression

getFinalImageData(:UIImage) takes a UIImage and downscales its size dimensions (to 400 ...
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, ...
2 votes
1 answer
226 views

Carousel in react

I implemented this carousel component in react: ...
3 votes
1 answer
460 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
83 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
231 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
745 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 ...
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: ...
3 votes
1 answer
704 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 ...
2 votes
1 answer
53 views

Refactoring string incrementing and duplicating function

I wrote this script and got what I wanted from it. However I'm looking for input on ways I can improve the function. My goal was to scrape a bunch of image links from a website I'd like to rebuild. I ...
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 ...

1
2 3 4 5
15