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
2 votes
0 answers
13 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
34 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
76 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 ...
  • 73
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
192 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
51 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 ...
  • 133
1 vote
0 answers
27 views

PyCairo surface.write_to_png too slow [closed]

I have to make a project that creates various images with pycairo and then uses all those images in ffmpeg to make a video. But the problem is that the method cairo.surface.write_to_png is too slow, ...
  • 11
4 votes
1 answer
186 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
59 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 ...
0 votes
0 answers
29 views

Framewise Full-Reference Image Quality Assessment (PSNR and SSIM) for Two Videos in Matlab

Besides the case of No Reference Image Quality Assessment for Video. I am attempting to implement a code snippet for calculating framewise Full-Reference Image Quality Assessment (FR-IQA) (PSNR and ...
  • 3,596
3 votes
1 answer
192 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
75 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: ...
0 votes
0 answers
42 views

No-Reference Image Quality Assessment (NR-IQA) for Video in Matlab - follow-up

This is a follow-up question for No Reference Image Quality Assessment for Video in Matlab. I followed the suggestions proposed by Cris Luengo to make the updated version code in this post. Some of ...
  • 3,596
3 votes
1 answer
64 views

UIImage downscale and compression

getFinalImageData(:UIImage) takes a UIImage and downscales its size dimensions (to 400 ...
2 votes
2 answers
96 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,596
3 votes
1 answer
72 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
76 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
419 views

Function to resize an image whilst maintaining aspect ratio

I have the following function: ...
  • 225
2 votes
1 answer
79 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. ...
0 votes
0 answers
23 views

Creating an image from data, and slicing it into zxy tile service

I have some data that comes out of a grib file. The values in the grib file come out in shape of (721, 1440). Each value ...
2 votes
1 answer
101 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
71 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
399 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
164 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
255 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
108 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 <...
  • 3,596
0 votes
1 answer
176 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: ...
  • 101
2 votes
1 answer
51 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 ...
  • 121
3 votes
1 answer
115 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 ...
  • 3,596
2 votes
1 answer
864 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 ...
  • 145
2 votes
2 answers
221 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
105 views

Carousel in react

I implemented this carousel component in react: ...
  • 21
3 votes
2 answers
172 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 ...
  • 245
2 votes
1 answer
105 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: ...
  • 271
4 votes
1 answer
462 views

Get image value total

Below is my code: ...
's user avatar
4 votes
0 answers
65 views

Compute the optimized palette for RGB image

...
  • 113
1 vote
0 answers
187 views

Merge and autocrop images with Jimp

The following code uses jimp to merge images, located in the ./in folder, with dots.png. Then it autocrops the images. Finally, ...
  • 565
1 vote
1 answer
31 views

Batch generating histograms of images in Matlab

I am attempting to plot histograms for batch of images in Matlab. The file structure of input images and the experimental implementation are listed as below. File structure of input images The matlab ...
  • 3,596
1 vote
1 answer
978 views

Changing the color of some pixels in an image in Swift

My code is working perfectly fine, except for one-thing. The performance is not up-to the mark. What I am trying to achieve is I have an image with a few circles (each circle has a border with ...
  • 113
0 votes
0 answers
688 views

NIQE score and PIQE score calculation for batch of images in Matlab

There are some image quality assessment methods for "no-reference" image quality analysis (NR-IQA). Here, I am attempting to calculate the NIQE score and PIQE score for batch of images in ...
  • 3,596
5 votes
1 answer
219 views

Image processing using Dyalog APL

I've started to write my first APL project, so I would like to have general feedbacks on coding style, file organization, error handling and defensive programming, performance improvements, etc. The ...
  • 113
3 votes
1 answer
95 views

Three-dimensional DCT spatial frequency components illustration

I am attempting to make three-dimensional discrete cosine transformation spatial frequency components illustration. The 3D cubes is used to present the level of each coefficient. The more bright the ...
  • 3,596
2 votes
3 answers
159 views

Batch extracting differences between two images with enhancement using opencv

I am attempting to extract the absolute differences image between two input images and then enhance the intensity (brightness) channel in HSV color space with the given times. The workflow is like ...
  • 3,596
2 votes
1 answer
47 views

Creating table for placing images in LaTeX

I am attempting to create a table for placing images in LaTeX. The first column is the (image) index, the second and third columns are images from different folder. For example, in the row with index =...
  • 3,596
1 vote
1 answer
61 views

Update image pixels based on different criteria

Problem statement: Assume a high resolution (> 3000 x 3000) image is given as input. The image pixels can be classified into one of the three categories namely text, background and drawing. There ...
  • 379
2 votes
0 answers
289 views

Python loading image into memory (numpy arrays) from database bytes field fast

I am looking for feedback on the function below to load a png image stored as bytes from a MongoDB into numpy arrays. ...
  • 161
3 votes
1 answer
149 views

C# screen recording

I'm developing a screen recording as an application log. The recording should capture a full HD screen at 25fps and on request it should save last 60 seconds of record. It is for embedded app, but the ...
4 votes
1 answer
158 views

Faster AAN algorithm for calculating Discrete Cosine Transform

I was implementing the AAN algorithm for computing the 2D Discrete Cosine Transform on an 8*8 array. I perform both the forward and inverse AAN algorithms. My code is extremely fast compared to the ...
0 votes
1 answer
86 views

Image pixelwise operation function with multiple inputs in C++

This is a follow-up question for Tests for the operators of image template class in C++ and A recursive_transform template function for the multiple parameters cases in C++. I appreciated G. Sliepen's ...
  • 3,596
2 votes
1 answer
67 views

Tests for the operators of image template class in C++

This is a follow-up question for Two dimensional gaussian image generator in C++. Thanks for Cris Luengo's answer and JDługosz's answer. I am attempting to update the implementation of ...
  • 3,596

1
2 3 4 5
15