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
21 views

Photo repository class in Kotlin [closed]

I am very new to kotlin and is still learning. I am looking at this class and have a feeling that this class is too long and should be better designed. But not sure how should i design it or what are ...
user avatar
4 votes
1 answer
70 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 ...
user avatar
3 votes
3 answers
363 views

Function to resize an image whilst maintaining aspect ratio

I have the following function: ...
user avatar
  • 225
2 votes
1 answer
54 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. ...
user avatar
0 votes
0 answers
22 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 ...
user avatar
2 votes
1 answer
85 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 ...
user avatar
5 votes
3 answers
64 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 ...
user avatar
6 votes
1 answer
356 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): <...
user avatar
3 votes
1 answer
115 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 ...
user avatar
4 votes
1 answer
142 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 ...
user avatar
2 votes
2 answers
79 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 <...
user avatar
  • 3,302
0 votes
1 answer
96 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: ...
user avatar
  • 101
2 votes
1 answer
49 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 ...
user avatar
  • 121
3 votes
1 answer
105 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 ...
user avatar
  • 3,302
2 votes
1 answer
286 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 ...
user avatar
  • 145
2 votes
2 answers
145 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 ...
user avatar
2 votes
0 answers
63 views

Carousel in react

I implemented this carousel component in react: ...
user avatar
  • 21
3 votes
2 answers
153 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 ...
user avatar
  • 245
2 votes
1 answer
88 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: ...
user avatar
  • 271
4 votes
1 answer
451 views

Get image value total

Below is my code: ...
user avatar
4 votes
0 answers
62 views

Compute the optimized palette for RGB image

...
user avatar
  • 113
1 vote
0 answers
82 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, ...
user avatar
  • 565
1 vote
1 answer
24 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 ...
user avatar
  • 3,302
1 vote
1 answer
606 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 ...
user avatar
  • 113
0 votes
0 answers
462 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. Here, I am attempting to calculate the NIQE score and PIQE score for batch of images in Matlab. The ...
user avatar
  • 3,302
5 votes
1 answer
170 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 ...
user avatar
  • 113
3 votes
1 answer
84 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 ...
user avatar
  • 3,302
2 votes
3 answers
95 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 ...
user avatar
  • 3,302
0 votes
0 answers
29 views

Batch Insert Multiple Figures into Powerpoint Slides with VBA

This is a follow-up question for Batch Insert Figures Into Powerpoint Slides with VBA. I appreciate PeterT's answer. Besides the single image replacement, I am attempting to make ...
user avatar
  • 3,302
2 votes
1 answer
44 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 =...
user avatar
  • 3,302
1 vote
1 answer
58 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 ...
user avatar
  • 379
2 votes
0 answers
190 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. ...
user avatar
  • 161
0 votes
0 answers
20 views

Pytorch Video Frames Dataset Implementation

I have a dataset of video frames in a folder with the directory structure looking like this: -parent -video_id -frame0 -frame1 -... My code, gathering ...
user avatar
3 votes
1 answer
124 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 ...
user avatar
4 votes
1 answer
121 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 ...
user avatar
0 votes
1 answer
85 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 ...
user avatar
  • 3,302
2 votes
1 answer
65 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 ...
user avatar
  • 3,302
7 votes
2 answers
206 views

Two dimensional gaussian image generator in C++

This is a follow-up question for Two dimensional bicubic interpolation implementation in C++ and Two dimensional gaussian image generator in C. Based on user673679's answer, another file ...
user avatar
  • 3,302
3 votes
1 answer
743 views

Two dimensional bicubic interpolation implementation in C++

This is a follow-up question for Two dimensional bicubic interpolation implementation in C and A recursive_transform Template Function with Unwrap Level for Various Type Arbitrary Nested Iterable ...
user avatar
  • 3,302
0 votes
1 answer
37 views

SubImage function implementation in C

This is a follow-up question for Two dimensional gaussian image generator in C, Two dimensional bicubic interpolation implementation in C and A SubPlane Method for Generic Two Dimensional Data Plane ...
user avatar
  • 3,302
4 votes
2 answers
432 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 ...
user avatar
  • 3,302
0 votes
0 answers
90 views

Two dimensional bicubic interpolation implementation for dlarray in Matlab

This is a follow-up question for Two dimensional bicubic interpolation implementation in Matlab. While I am working on neural network designing, I want to compare the effects between using padding and ...
user avatar
  • 3,302
3 votes
0 answers
514 views

Two dimensional bicubic interpolation implementation in Matlab

I am attempting to implement two dimensional bicubic interpolation algorithm in Matlab. The input is a two dimensional array and the output is the interpolated result. The test input matrix: ...
user avatar
  • 3,302
4 votes
2 answers
108 views

Two dimensional gaussian image generator in C

This is a follow-up question for Image Processing Median Filter in C. I am attempting to create a two dimensional gaussian image like below in C. The formula is as follows. The experimental ...
user avatar
  • 3,302
3 votes
3 answers
347 views

Image Processing Sobel Edge Detection in C

This is a follow-up question for Image Processing Median Filter in C. Under the same tiny bmp image read / write framework, a sobel edge detection function has been performed. The experimental ...
user avatar
  • 3,302
4 votes
4 answers
264 views

Image Processing Median Filter in C

I am attempting to perform Median Filter with size 3 x 3 in C language. The function MedianFilter33 has been implemented as follows. The experimental implementation ...
user avatar
  • 3,302
4 votes
0 answers
94 views

Possible optimization for finding small bitmap in large bitmap in C# without unsafe code?

Background I am creating a tool to locate a small bitmap in a large bitmap by comparing each pixel. Since I am by far no professional programmer, I was searching for some code snippets and found this. ...
user avatar
  • 41
2 votes
1 answer
96 views

Multi-core OpenCV denoising

I have ~40,000 JPEG images from the Kaggle melanoma classification competition. I created the following functions to denoise the images: ...
user avatar
  • 121
1 vote
1 answer
43 views

Correcting coordinates of an image with polynomial root in python

I want to optimize this for loop for correcting coordinates of an image, it takes too long which is not suited for my system. I have done some profiling, the numpy roots is taking most of the time (...
user avatar
5 votes
2 answers
407 views

C : Image Segmentation

My primary coding language is C++, but I occasionally use C. I wrote some simple image segmentation using Union-Find algorithm. Feel free to comment anything! ...
user avatar
  • 1,151

1
2 3 4 5
14