Click here to Skip to main content
15,882,017 members
Everything / Multimedia / Image Processing

Image Processing

image-processing

Great Reads

by Darko Jurić
SIR Particle Filter brief tutorial with samples in C#
by V.
Case study on how to solve a complex problem by dividing it into smaller problems.
by J. Broun
An article aimed at intermediate coders on decoding Stardent Corp.'s AVS Bitmap Image format.
by dynamichael
Build an oct-tree from a color palette for a fast nearest color search

Latest Articles

by Hans-Peter Kalb
C# library for reading and writing EXIF tags in JPEG, TIFF and PNG image files
by Huseyin Atasoy
An image classifier / tagger based on convolutional neural networks. Now more than 10 times faster with the Intel MKL support.
by napuzba
How to use pointers when processing images in C#
by dynamichael
Build an oct-tree from a color palette for a fast nearest color search

All Articles

Sort by Updated

Image Processing 

U 7 Apr 2024 by Member 16238522
Complimenti! Articolo interessante! Ѕе cerchi un' idea sս dove andare in vacanza vai su seViaggi
29 Nov 2023 by OzzieOzburn
Dear all, This is for the my new project so i need suggestion about how to start. I want to detect random shape defects and color changes on the fax paper. For example there is a randomly shaped torn area on the paper. I want to find this...
13 Sep 2023 by OzzieOzburn
I am trying to learn image processing, but it is a pain because of camera selection. In C# Winform, I am trying to get video capture by using the camera. When I use integrated webcam, everything works fine. However, when i pick USB connected...
9 Sep 2023 by Richard MacCutchan
The return value from VideoCapture(1) is null, so the line: capture.ImageGrabbed += Capture_ImageGrabbed; throws the exception, since capture does not contain a valid reference. You should check that the call to VideoCapture(1) returns a...
9 Sep 2023 by OriginalGriff
This is one of the most common problems we get asked, and it's also the one we are least equipped to answer, but you are most equipped to answer yourself. Let me just explain what the error means: You have tried to use a variable, property, or a...
8 Sep 2023 by Ridhdhi Vaghani
What I want to do is create a 3D object from multiple 2D images. I have 300 images of a single diamond. All those images are taken from different sides of the diamond. I want to combine all those images to create a 3D object. I want to create...
5 Sep 2023 by Jose Toledo
An algorithm that solves this problem is Marching cubes: Marching cubes - Wikipedia[^]
4 Sep 2023 by Rick York
You need to continue with your process. What you have to do is associate each image with an angle and process the image as you did. That will determine the right and left side points at a given angle. If the image was looking at the zero angle...
1 Aug 2023 by sahil ajmeri 2022
i am working on a software where i want to do some image processing and detect the circle from the image and there is two circles that i want to detect first one is in the object (rough diamond) and the second one is i am drawing on the image or...
27 Jul 2023 by sahil ajmeri 2022
i have the code that works fine for the x64 bit OS while x32bit OS generates exception : "The type initializer for 'Emgu.CV.CvInvoke' threw an exception." i have followed almost solutions from the internet still didn't get rid of the problem. i...
27 Jul 2023 by sahil ajmeri 2022
i get rid of the error by uninstlling the emgu.cv nuget package and i have added reference dlls from the version 2.3.0.1416 1) Emgu.CV.dll 2) Emgu.CV.UI.dll 3) Emgu.Util.dll 4) opencv_core231.dll 5) opencv_imgproc231.dll but when you will use...
17 Jul 2023 by Pete O'Hanlon
OpenCV builds as either 64bit or 32bit. If you are trying to run your application on a 32bit processor, you will need to add the 32bit DLLs. This[^] details how to build the 32bit version.
27 Jun 2023 by Farzad Saadat
I usually convert the txt format to a file, convert it to PDF and output from that file in any language, even Python. .
21 Jun 2023 by Member 15902014
I would like to get a “blurness” value after using the cannyfilter on a siemensstar image, to check the blurness level. After usind the canny filter you can identify that the sharper image has more lines than the blurry one. So what would be the...
21 Jun 2023 by Richard MacCutchan
See canny filter - Google Search[^] for further information.
11 Jun 2023 by Member 15667238
Here I tried, but it's not working. What the correct way to do this? Here's my attempt: What I have tried: import cv2 with open("annotationfile\\orange.txt") as iostream: content = iostream.read() color = (0, 0, 255) # RED for line in...
26 Apr 2023 by sahil ajmeri 2022
Hello, here i am working on C# WinForms desktop application where i have to do some image processing on the images. there is the lines between an object that showing in the image. here i am adding some reference images in links. image1 image2...
22 Mar 2023 by sahil ajmeri 2022
i am working on a project in C++ WinForms. i have a blur and defocused Image. i want to make that image more focused and sharpened but smooth and clean as this Image. this image enhanced in mobile application. and i want the same result as this...
30 Jan 2023 by Member 15908705
I have detected the edge of the wires. Now I need to get the color of each wire column and make a list of the color from left to right but I don't know how to do it or what function should I use to get the color for each wire column. What I have...
23 Nov 2022 by Apoorva 2022
I'm comparing two images - a complete image & a small part of the same image. If a match is found, then a rectangular box is drawn around that part of the image which contains the smaller image. To implement this, I have used the 'matchTemplate'...
23 Nov 2022 by CPallini
What about resizing the image: OpenCV Resize image using cv2.resize()[^] ?
22 Nov 2022 by Member 15064225
I want to develop a program for counting cucumber seeds. I have 10 images. Each image contains about 100 cucumber seeds. How can I do it? What I have tried: I write some code by deep learning in python.
22 Nov 2022 by BernardIE5317
HS1405/HS1405: Useful Image-Based Techniques for Manual and Automatic Counting Using ImageJ for Horticultural Research[^]
29 Oct 2022 by dinesh.17krishnan
I'm using the following code. BitmapData bitmapData = bitmap.LockBits(new rect(X,Y,width,height), ImageLockMode.ReadOnly, bitmap.PixelFormat);What seems to be the issue is bitmapData.Scan0 gives me IntPtr of the top left corner of the rectangle. When I copy using memcpy,...
6 Oct 2022 by Richard MacCutchan
You have the following lines in your code: ROI3 = image2[y:y+h, x:x+w] # this looks like part of the image # ... img_path = ROI3 # ... save_path = os.path.join(out_path, img_path + '-output.jpg') You need to look at the content of...
6 Oct 2022 by M@153
I'm trying to run the paddleOCR framework on the cropped ROI of a scanned image, but when I do, I always get the error message mentioned below. I have no idea what's gone wrong. UFuncTypeError Traceback (most recent...
23 Sep 2022 by M@153
Input image I need to extract CR No.from the sample image above. Using Easyocr, I got the output in complex nested list form. How to update the code to filter out all the detected text/numbers and get only CR No. I tried to fetch the text "CR...
23 Sep 2022 by Richard MacCutchan
Something like: mainlist = [([[212, 26], [314, 26], [314, 50], [212, 50]], 'SCB MEDICAL', 0.998906268787747), ([[36, 56], [84, 56], [84, 80], [36, 80]], '6ein8', 0.19502338570146513), ([[303, 99], [335, 99], [335, 119], [303, 119]], 'OPD',...
6 Aug 2022 by Rehman Ali Aug2022
I have seen a lot of papers related to AES and triple-DES image encryption where they display the encrypted image results. But I am unable to find how they do it as if the image is encrypted, then it is converted into some unreadable format. Then...
6 Aug 2022 by Richard MacCutchan
The result of encrypting anything is a stream of bytes, many of which are not displayable on a screen or printer. For example if I encrypt the string: "The rain in Spain falls mainly in the plain" the result is ...
15 Jun 2022 by Chris Maunder
If you need to have a pure Python solution then the easiest way would be to clone the YOLOv5 repo and find a custom model that contains detection for cucumber seeds. Here's a walkthrough of YOLO and custom models[^]. As to a custom model of...
12 Jun 2022 by ATF 98
I'm trying to extract 3 random areas from the image (lungs image) these areas are indicated in the soft tissues, each area will be a square of specific height and width e.g. 10mm for width and height, as shown in the image in the link. ...
19 Apr 2022 by Richard MacCutchan
See python image processing - Google Search[^]
4 Apr 2022 by Member 15590963
I just started opencv I converted a picture into a text file with opencv and I want to compare the similarities with the code with the ready text file I have, how can I code it? can anyone help? What I have tried: I did some research but...
4 Apr 2022 by OriginalGriff
Don't even think about it. "Similarities" in an image are complicated enough: a shade off, a slight change in size or alignment, a small rotation - these are difficult enough for a computer to spot in an actual picture: image similarity python -...
4 Jan 2022 by Member 14047666
We are performing Auto Crop operations using OpenCV library in C# project, For few sample automatically cropping the image but for other samples images are not cropped. Let us know anything is missing in source code. Please find the below piece...
4 Jan 2022 by KarstenK
A clear case for the debugger, because it is some special situation. So use the tool with some test data. I think your fix coordinates in the code can be a problem when using different image sizes. Also read the OpenCV documentation for...
10 Sep 2021 by payam mohammadi
yRBW2 — Postimages[^] hi, at the first, please open link and see (image) that is on top of question i have only one simple question as you see in image , there are few lines in image, my code find intersection points of lines i want to...
2 Sep 2021 by Member 15345349
I am running into an issue with simple image stitching. Using a pixel by pixel overlap stitch, I am able to produce a fairly accurate stitch however some of my sub-images have slight vertical deviation (and possible horizontal deviation). Are...
2 Sep 2021 by Peter_in_2780
Hugin Panorama is the bee's knees, and the price is right. Hugin - Panorama photo stitcher[^] You could spend a lifetime exploring the tools and features. Great for perspective correction on single images too. Take a photo of something framed...
13 Aug 2021 by payam mohammadi
hi guys i wrote this code in c# (winform) . my app use from Emgu-cv library for image processing in c# you can see codes of main file (lineutil.cs) as below with this code app can draw lines with (Houghline) and app can find intersection points...
7 Aug 2021 by payam mohammadi
hi guys i need to a code for image processing in c# i need help to find intersection point of 2 lines in image for example this image: https://pasteboard.co/KeNReJ4.jpg i need to use from Emgu library in c# for find this points i have a code...
7 Aug 2021 by OriginalGriff
That code has nothing to do with image processing - it's to do with finding the intersection point of two lines given their start and end points as three dimensional coordinates. That's just simple geometry! I can only assume that what you are...
24 Jun 2021 by Hans-Peter Kalb
C# library for reading and writing EXIF tags in JPEG, TIFF and PNG image files
1 May 2021 by Member 15179486
Here's my code: Each function should have an img parameter plus any parameter specified in the comments to determine how the image will be filtered/edited. Each parameter needed is shown at the end of each function rotating the image from PIL...
29 Mar 2021 by Member 13691514
The fact that the person is skiing adds additional complexity to the processing versus running as I imagined. However, it also adds an additional clue. Let me explain what I mean. You have to know something very well in order to measure the...
26 Mar 2021 by Nadja Rabizadeh
Hi, I wonder how to get the real velocity of a moving person in a video? What I have tried: I have stabilized the video to remove the global motion of the camera, and then I have tracked the person with an object detection method, so I have the...
26 Mar 2021 by Member 13691514
What the others have posted is correct. Also, you need to ensure that the camera does not change magnification (zoom) during the video. 1) Even if the person is moving perpendicular to the camera, comparing pixel changes to the size of a known...
17 Feb 2021 by RickZeeland
This is from the Bosch Video SDK5 help file: Quote: VCA Overlay and VCA Configuration Concept All VCA related actions are handled through the IVcaConfig interface of the VCA configuration object that each video renderer provides with its...
17 Feb 2021 by mohammad hasani
Hi, I'm trying to get VCA informations like object tracking, motion, and tamper detection from Bosch Camera using its SDK, but couldn't find any code example or any explanation about how to do it with SDK. Can you help me, please? What I have...
16 Feb 2021 by OriginalGriff
You should talk to the people who created it - Integration tools | Bosch Security and Safety Systems I Nordics[^] - they should provide technical support and will know more about their product than we will. If they don't, then find another...
4 Nov 2020 by Hai Luu
My project is to detect the lines on a picture, I know using houghline function(openCVsharp), but the result gives me many parallel lines. Could you guide me on how to merge these parallel lines? var gray = OpenCvSharp.Cv2.ImRead(filename,...
1 Oct 2020 by Member 14785741
So basically I have an image with whitespace and a text above. The output should be only the picture. Without the text and the whitespaces. The best example would probably be a meme: https://i.stack.imgur.com/03Tmo.jpg How could I implement...
1 Oct 2020 by Member 14953523
import cv2 import numpy as np #img = cv2.imread("test.png") img = cv2.imread("img02.png") blurred = cv2.blur(img, (3,3)) canny = cv2.Canny(blurred, 50, 200) ## find the non-zero min-max coords of canny pts = np.argwhere(canny>0) y1,x1 =...
20 Aug 2020 by Member 14760154
I want to know how i can save my trained face into different folder based on label i give to each face , I was develop a project about employee attandance , i Would compare a image in my camera with trained face in my folder , but for any...
20 Aug 2020 by Sandeep Mewara
Quote: but for any reason ,if i have 1000 trained face ,i think it would be take long time to compare it , It depends on what ML algorightm you are using. It's not a pixel by pixel comparison that you do to identify the person and label them....
7 Jul 2020 by PotatoSoup
Years ago I worked for a company doing similar to what you are describing. I used CorelDRAW and CorelTRACE and a script file to automate the process. I might be able to describe how to do this with C++ (not .net, and not Visual C++). For your...
29 Jun 2020 by Ivan_FM
I have to decide between PNG or JPEG image format for the pictures that my project will work with.I've been testing the conversion of the same pic to this formats, different ppp config, and all the results says that i can get a good resolution with JPEG with so much less image...
29 Jun 2020 by Luc Pattyn
The choice PNG/JPG very much depends on circumstances: 1. image quality you loose some when using compression. it would not be a good idea to use JPG for a screen shot of a text document with small font sizes. 2. performance what are you doing...
29 Jun 2020 by Silicon1
JPEG. - Best for natural images (photos). - Do not support transparence. - Adjustable size. Less size, less quality. PNG. - Best for sintetic images (Line art, Computer Graphics, icons, etc...). - Support transparence. - Ever perfect quality....
12 Jun 2020 by RickZeeland
Maybe this CodeProject article will be helpful: A Simple - Yet Quite Powerful - Palette Quantizer in C#[^]
12 Jun 2020 by osekj
Hey, I am trying to implement the Ordered Dithering Algorithm. I have already somehow working code, but it is not returning a proper result bitmaps. The function that I use takes 2 input values: - the size of the threshold map (n) - number of...
4 Jun 2020 by OriginalGriff
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us...
11 May 2020 by Huseyin Atasoy
An image classifier / tagger based on convolutional neural networks. Now more than 10 times faster with the Intel MKL support.
8 Apr 2020 by Member 10107283
Hello,Where can I find a 3D image segmentation code using Otsu thresholding or using watershed transform. In any language but preferably in MATLAB language. kindly direct me to the right placeThank you very much,
26 Mar 2020 by Member 14129828
I tried to create a video from a sequence image using FFmpeg in c#. I wrote this code but I didn't get the output how to solve this problem...thanks What I have tried: public void Execute() { using (var...
26 Mar 2020 by Maciej Los
Please, take a look at answered question: Converting Images into Video using C#[^] You can also be interested in this project: GitHub - mmaitre314/PictureMovie: Create MP4 videos from JPG/PNG/GIF/BMP images[^] Other links:...
15 Mar 2020 by Hammad Raza
I want to remove blur from image taken from cam.
5 Mar 2020 by David Radianu
Hello i'm currently working on a project where i have to use instance segmentation of different parts of seedlings (the top part and the stem) Example image: https://imgur.com/kWAZBed I have to be able to calculate the angle of the hook for every...
27 Feb 2020 by Jay Thurman
Here is my question. I Want to create an image upload page for members of my site. I want to, when they upload it, on then will they be able to see. And i want a page to recive data from the database the picture is stored in and be displayed on a page. but here's the problem. Since all of the...
6 Feb 2020 by phil.o
If you do not want it to close automatically, you can addConsole.WriteLine("Press a key..."); Console.ReadKey(); at the end of the Main method.
6 Feb 2020 by Member 14589606
I try to run the code, it doesnt tell the format but closes immediately, any ideas? The path is correct as it some times flashes the format and then closes using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using...
1 Jan 2020 by Richard MacCutchan
The error is quite clear, you have run out of memory. You will need to modify your code so that it does not keep all the pages in memory. You could try saving each page as you process it so that it reduces the amount of memory in use at any time. Also, I am not sure why your Save method writes...
1 Jan 2020 by Member 13187373
I have 10MB+ Tiff files having 50 pages, and I want to perform rotation of all the pages by 90 degree at one click only, but after performing the rotation operations for each frames in foreach loop and when it comes to the Save(Encoder encoder) then here, encoder.Save(temporaryStream); //...
17 Dec 2019 by larry118
Hi again, I have been working on an app that is 98% complete in vb .net. If I knew what I was getting into using vb for image processing I would have used C# but I am way down the road and I think/hope this is my last issue. Again many thanks to all those who have posted filters,quantizers,...
29 Nov 2019 by Member 14129828
I read a video that has 1000 frames then, I want to save these frames from number 0000 to 1000. I did my code but save the frames from 1,2,3,....1000 how to make all of them have 4 digits, I mean starting with 0001,0002,0003,....1000 Can anyone give me an idea because I don't find anything about...
29 Nov 2019 by phil.o
You could try framenumber.ToString("0000") Custom numeric format strings[^]
8 Nov 2019 by Member 14649324
public void loadImage() { try { File OrignalImage = new File("c:\\images\\2.jpg"); img = ImageIO.read(OrignalImage); } catch (Exception e) { } } public void createBufferedImages() { ...
5 Nov 2019 by Member 14129828
I want to get the height of the tower inside the image. I measured it by the rule I found it 9 cm. I use contour to do the segmentation then I computed the height of contour but the output of my program is 358. what is it? and how I get the real result? What I have tried: temp = new...
5 Nov 2019 by Richard Deeming
As discussed in the comments, the value 358 is in pixels. On a 92dpi screen, that works out at approximately 3.9 inches, or 9.9cm.
19 Oct 2019 by RickZeeland
If you want to work without a camera and only with files, use this as the first line in your code: #DEFINE FILE_CAPTURE You probably also need this line: ImageStreamReader videoCapture; Also see: #define - C# Reference | Microsoft Docs[^] And: Introducing Portable Imaging IO Library for C#[^]
19 Oct 2019 by Member 14129828
I want to track 265 Sequence images which saved in "D:\\Resources\\Sequence" I get warning that videoCapture is never assigned to, and will always have its default value null...and when I run it I get this message " "Cannot find any camera!" "...I don't know how to solve this problem..could...
17 Oct 2019 by Member 14129828
I try to read a sequence of images to do some process. I don't have any error but when I run it the program stop and gives the error "An unhandled exception of type 'System.AggregateException' occurred in mscorlib.dll" and told me that frame is null...I searched about DotImaging but I didn't...
13 Oct 2019 by Dave Kreskowiak
The error message is very specific. Look at the line where you define your path: string resourceDir = " D:\\image\\OpenHandLeft_BW'"; You have a space before the D in your path and you also ended the path with a ' character. Remove those two characters and it should work.
13 Oct 2019 by Member 14129828
I want to load a sequence of images one by one for tracking it but I have a problem with getting it. I saved the sequence in "OpenHandLeft_BW"folder inside the" image" folder then I called it in the program. What I have tried: List fromFiles() { ...
9 Oct 2019 by Member 14129828
I want to detect a small white ball using "HoughCircles", I have code which detects a red ball. I don't know how to change the color to white, because I don't understand the command " InRange" and how make it detect a very small ball? What I have tried: mainImage = new Image
2 Oct 2019 by Crediblock
The goal is to have a Python program that modifies a group of images by printing text on them from a user form. I've done it with a single image and works great! However I'm struggling with the usage of for and creating filenames numbered as 1,2,3. as a suffix. Program should modify all files...
2 Oct 2019 by Visweswaran N
These three libraries which comes within python makes your job a lot easier. I have made a skeleton code for your kind reference. # SWAMI KARUPPASWAMI THUNNAI import glob import os import shutil files_in_folder_one = glob.glob("original images/*.*") folder_two = "modified images" for file in...
1 Oct 2019 by Richard MacCutchan
You first need to use os.listdir (see os — Miscellaneous operating system interfaces — Python 3.7.5rc1 documentation[^]) to get a list of the filenames in the source directory. You can then use a for statement to get each name in turn and pass it as a parameter to the function that changes the...
25 Sep 2019 by Afzaal Ahmad Zeeshan
A simple answer would be, list the shapes with their area, and then sort them in descending order based on their area, finally get the top 5. Also, like Bill had mentioned in the comment, you can ignore the Dictionary, and use SortedDictionary[^]. That will sort the data automatically for you...
25 Sep 2019 by Member 14129828
I try to find the five smaller shapes among many shapes but my program doesn't work well, can you tell me where is the problem What I have tried: Image imgOutput = imgInput.Convert(); binary = new Image(imgInput.Width, imgInput.Height, new...
9 Sep 2019 by Gerry Schmitz
if "avg" is between 81 and 99, it returns 0, else 255. (RGB 0,0,0 is black). (RGB 255,255,255 is white).
9 Sep 2019 by Member 14129828
I am trying to do an image segmentation which depends on the histogram values, first I did k-mean, then I convert the image to grey and taken the histogram value from it. Finally, I using the threshold to get the requested part. What I have tried: private void button2_Click(object sender,...
13 Aug 2019 by Parth_k
I trying to develop a program using neural network to solve any real-life problem. so, I took retinopathy detection using Probabilistic neural network using MATLAB. I took some help from professor and developed the program. I have trained the neural network and created the dataset but when...
10 Jul 2019 by Agit Çelik
Please help me this is urgent.! By the way I am using Window 10 x64 I am getting error while data_loc = os.path.join('data', 'datasets', data_code + '.hdf5') data = h5py.File(data_loc, 'r') I run 'python train.py fcn_rffc4 brats_fold0 brats_fold0 600 -ch False' command Error is shortly,...
10 Jul 2019 by Member 13318305
yeah, it's self-explanatory. But the million dollar question is that my path is correct yet it is unable to open the hdf5 file. So any suggestion what should I do?
6 Jul 2019 by James.Read(JR)
I trying to build a android mobile application for user registration using face recognition. I tried Firebase ML Kit's face detection API to detect face, but I need to build a application like this... 1.Open the front camera through the app 2.When keep face centered, app need to detect face and...
6 Jul 2019 by Richard MacCutchan
This is a research question, see https://www.codeproject.com/KB/android/[^]
17 Jun 2019 by napuzba
How to use pointers when processing images in C#