Click here to Skip to main content
15,881,711 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 

1 May 2011 by #realJSOP
You can create an image, and then simply write text onto it. I wrote an article that demonstrates how to write text onto a bitmap. You may be able to adjust the code for your purposes.Render Text On A Bitmap (and other stuff)[^]
8 Dec 2011 by #realJSOP
A little google goes a long way:http://www.gutgames.com/post/Adding-NoiseJitter-to-an-Image-in-C.aspx[^]EDIT ===============================You voted my answer a 1 because you don't want to do the work necessary to accomplish your goal? Rightie-oh, then...Here's more than 3.8...
25 Oct 2016 by #realJSOP
Maybe this will help:Image Processing for Dummies with C# and GDI+ Part 2 - Convolution Filters[^]
14 Jan 2018 by #realJSOP
I'm starting with a stream that represents an image, and drawing it onto a larger image. To do this, I wrote an extension method for MemoryStreams. When I try to save the image into a new stream, the code is throwing "Parameter is not valid" exception. Facts: - The stream on which I'm calling...
14 Jan 2018 by #realJSOP
Nevermind. I did it without streams and everything I want to happen is happening.
17 Jul 2018 by #realJSOP
Well, there's an app that does it: Image Composite Editor - Microsoft Research[^]
21 Apr 2014 by 123456789igor
So, i try to save image on disk from web camera using AForge. But the image takes a lot of size on disk and amount of images is high. I want to descrease the size of images and descrease the amount of images per second(minute). But i don't know how to do thisMain code:public void...
13 Mar 2011 by _Ares!!!
You should keep image in the BLOB format. Probably, you do something wrong when you put image into database...
3 Mar 2014 by _Asif_
instead of writing int values convert it to text and then save it like this. The problem here it is being written as binary format. w.write((pt.x.tostring());
5 Apr 2016 by _ProgProg_
Dears,I am developing a page to upload users signatures with rules that:*Image must be PNG.*Image size must be no more that 4 MB.Now, i want to make the uploaded photo transparent by code if the user didn't make it transparent.Is that is possible? if yes, How?Thanks in...
29 Dec 2012 by A-s-h-l-e-y
Microsoft offer the Kinect Labs SDK for windows. It works in visual studio so c# or ++. Im assuming this is what you mean.
20 Oct 2013 by a7med ssss
Hi,, How to open image in C# and convert to binary and show it on the form??
22 Apr 2012 by aasharma
go to directory where is image file say abc.jpg.>>I=imread('abc.jpg');>>save I>>imshow(I);Done.
1 May 2019 by abdou_31
I have setting up a project that should detect iris region ( in eye ) in real time using deep learning , I have cloned yolo segmentation project in github : https://github.com/ArtyZe/yolo_segmentation I compiled the project using make -j4 , and i'm trying now to training my own dataset using...
25 Oct 2016 by Abdul Amin Khan
I want to create a feathering feature on images like photoshop in C#:http://www.dummies.com/software/adobe/photoshop/how-to-soften-edges-with-feathering-in-adobe-photoshop-cs6/What I have tried:Image Background is working fine but not able to do feathering of images
18 Jun 2015 by abdulsafran
Dear Experts, below is my code. I'm saving an image with add some contents to the image from DrawString. My problem is, once I saved the image, CMYK become RGB, image size is different, image dpi is different. Like that several input image configurations were changed.I just want to keep the...
1 Nov 2013 by Abe-r
...I have a project that should be able to count the people present in a crowd from an image. I have tried using traincascade but it detects many false objects. Could you give me another approaches that I could use, I only have few time left so please help me.
7 Nov 2013 by Abe-r
How can I make the background of an image black and all the objects present are white? I have tried the AbsDif and thressholding its result but it considers the lighting very much.Here is the sample image :...
8 Feb 2011 by Abhinav S
You might find this blog[^] interesting.
20 Jun 2011 by Abhinav S
This s[^] has an undo implementation. You could consider using the logic behind this.
26 Nov 2011 by Abhinav S
This[^] might help you.
20 Mar 2013 by Abhinav S
TryContour Analysis for Image Recognition in C#[^]Image Recognition with Neural Networks[^]
2 May 2014 by Abhinav S
This thread[^] might be useful to you.Try this[^] thread as well.
12 Oct 2015 by Abhinav S
You are missing the alpha content.int Blue = currentLine[x];int Green = currentLine[x + 1];int Red = currentLine[x + 2];int alpha = currentLine[x + 3]; //Alpha That could be making a difference in your final output.
2 Jan 2013 by Abhishek Pant
Hands Gesture Recognition[^]
3 Apr 2015 by Abhishrek
Hello Everyone,BackgroundI am working on an application that requires some image-processing on video stream and display the original video and processed video side-by-side.SitutationBelow is the event handler when a new frame is received from camera.pictureBox1is where the original...
7 Apr 2015 by Abhishrek
I solved the problem myself using background worker. Posting here for reference.private void camera_NewFrame(object sender, ref Bitmap image){ pictureBox1.Image = image; if (backgroundWorker1.IsBusy != true) { lock (locker) { if (inputImage !=...
3 Aug 2015 by Abhishrek
Hello everyone,For an image processing project (with OpenCV), I need to find curve points in a contour (List of Points)The contour is extracted from real life images by :Color Filtering -> Threshold Binarization -> Contour Extraction(These processes use OpenCV functions)In the...
5 Aug 2015 by Abhishrek
Hello EveryoneI studied a bit and found that taking the first order derivative of the contour (for x and for y separately) can solve this problem.The first order derivative is used to find Local Maxima and Minima. On the curve points the value of the first order derivative changes from...
9 Oct 2015 by Abhishrek
I have an Image and I am applying an edge detection algorithm (Canny) to it.I get the edges in image but for my work I need to get the detected edges as a list of points, specially the ones that are connected. (list of contours), in order to perform meaningful operations on the detected...
24 Oct 2015 by Abhishrek
Hello all,I was writing a code with MorphologyEx() function of OpenCV, when i mistakenly gave value 0 to 'Morphology Operator' parameter of the function.As can be seen in the function specs [^], the Operator value ranges from 2-6 for Opening, Closing, Gradient, Top, Bottom hat operations...
31 Dec 2012 by Adam R Harris
Read over this, your answer is in there.Cropping Images[^]
22 Jan 2014 by Adi5555
its easy to convert the image format but i want to save the bitmat object as a png extention image or jpeg extention image....so need ur help
4 Jan 2013 by Aditya Magotra
Hi,How to Convert 2d Image into 3d in asp.net ?Please help me.
23 Jan 2013 by ADotNetDev
Hello, I want to create image editor in asp.net so I am looking for open source image editor control for asp.net. It should work like MS paint which provides add/ edit/ delete text and other images. So can any one help me in this?I search on Google and found some of the image editors but I...
30 Nov 2013 by Afnan_
I'm trying to draw a grayscales image of type 48bppRBG pixel format.I have an array/list of ushort values. These values are the pixels values. So each color(R, G ans B) will have the same pixel value, since it's a grayscale image. In an 24bpp type, these values are scanned then converted to...
8 Sep 2014 by Afzaal Ahmad Zeeshan
Google is a good friend of yours, you can always find a solution. If you just try to search for, "scan images c#" google would return the best threads that have the solution to your problem.I did the same, and a CodeProject solution, posted in the comments, was achieved. Scan and Save Images...
31 Aug 2016 by Afzaal Ahmad Zeeshan
Do you know what image formats[^] actually are? C++ language won't be that much easy to work with in this case. That is why it is always recommended to use a library instead of writing it from scratch. Libraries would let you work with many formats easily. To get an idea of how hard things can...
14 Jan 2019 by Afzaal Ahmad Zeeshan
A face is detected as a rectangular area bounding the face. What you need is an edge detection algorithm, that detects the bounding areas from the edges and then you clear the internal pixels and get a mask. You can mix the face detection and edge detection algorithm to first find a bounding...
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...
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,...
17 Jun 2014 by AhmadAhsan
Hi I am using Visual Studio 2008 (.NET framework 3.5), currently I am uploading images to my ASP.NET webforms application in c#. If some one copies my image url and opens in new window/tab then complete directory structure of my site is revealed to the user, some thing like...
2 Mar 2013 by Ahmed Dheyaa
Hi every One , I Need to Calculate Area And Perimeter Of Objects in gray image. Can anyone help me ? please.
7 Mar 2017 by ahmed_sa
I work in windows form application c# vs 2015I can insert data in excel but image cannot insert when insert another data i using System.Data.OleDb.OleDbCommand excelCommand = new System.Data.OleDb.OleDbCommand("INSERT INTO [AllPrinting$](UserID,UserName,Country,Member) VALUES (?,?,?,?)",...
15 Apr 2013 by ahmedmeg
hello everybody;i want a simple code in visual c# to read an image ,i mean convert an image into an array(r,g,b) simply in order to deal with it later using image processing algorithms.i want this code to teach it for my student , it is very simple in vb6.so please help me... thank...
26 Sep 2012 by Ajesh Kumar.T.T
Is any algorithm available for converting palette image buffer(including bitmap information) to RGB buffer. c++
27 Sep 2012 by Ajesh Kumar.T.T
I solved this problem as shown below:ULONG ulPixelDataSize = Height * Width * 3;RGBQUAD* pRGB = new RGBQUAD[nNumColors];// Color table filled in pRGB.BYTE* pbyPixelData = new BYTE[width * height];// Pixel data filled in pbyPixelData.BYTE byNewSamplesPerPixel = 3;BYTE* pbyRgbBuffer...
2 Mar 2012 by ajit_machhe
from my point of view...A WPF Custom Control for Zooming and Panning[^]please refer the above link. solution to you problem from my view would be like >>select the rectangle to crop. then save the cropped image then resize the iamage as per your requirement(zoom percent)....
14 Feb 2012 by akul123
How to crop an image that is zoomed(zoomed in/out). Cropping works fine when the image is normal, that is not zoomed. I have used a panel whose AutoScroll property is true and a picturebox inside the panel whose sizemode property is AutoSize and BackgroundImageLayout is Tile. Load image: ...
10 Apr 2012 by akul123
To change brightness of an image in c#.net 4 i have used the following method. public void SetBrightness(int brightness) { imageHandler.RestorePrevious(); if (brightness 255) brightness...
23 Apr 2012 by akul123
For some days I have been trying to optimize an image processing program (cropping, rotate, changing brightness and undo) written in c# 4.0. Getting suggestions from google I have optimized the code in many ways. At first some disposable objects hadn’t been disposed that’s why exception was...
3 Apr 2011 by alaa cs
what is algorithm to compare two picture???after filtration tow picture ,how do compare???
11 Mar 2011 by Albin Abel
As Original Griff said it is not sure what is there in the byte array. The byte array has to have all the bytes from the file as such if you haven't re dimension or any other header parameters changed by your code. Not just the pixel values.
28 Sep 2011 by Alexander Chernosvitov
AntiBot control using HTML5 rotating feature
19 Feb 2013 by alexandrosok
i wrote that code to calculate the distance between two point any one can gime a tip how to get the minimun distance between these point -not the max - ^^thanks a lotint distanceX; int distanceY; int index = 0; int max_index =...
7 Oct 2013 by Alexey Shtykov
How to print an image to a printer within a proper size
22 Dec 2014 by alexhouben
Hi,If have a Raspberry Pi surveillance cam and it takes every 3 seconds a snapshot.This works 100%, and I display the image with help of the following HTML code: ...
26 Apr 2014 by Alishba Khalil
I am using OpenCVSharp library to use opencv in C#. I'm trying to load image from a file using this code:IplImage cap = Cv.LoadImage("D:\\eye1.jpg",LoadMode.AnyDepth);but it shows exception: "TypeInitializationException was unhandled;The type initializer for 'OpenCvSharp.NativeMethods' threw...
4 Apr 2018 by alpacaheng
I want to make a program that can compare two image but ignore the brightness which may cause by sunlight. is there any library or method to do that? What I have tried: I have tried to compare two image by comparing the pixel, but it will not ignore the brightness.
20 May 2015 by ambot1949
Hi..I have an image.. like a coin shaped image.Inside the image contains characters following the curve part.My problem is how to be able to recognize the characters especially those at the curve part..My ideas are: 1. To straighten the curve part.. but i don't know how.2. To...
26 Oct 2012 by ambuj saxena
Hi All, i am new with opencv. i want to know how extract text data from image if any one tell me which is the steps i have to follow. any kind of help appreciated.
27 Apr 2013 by amir tarek
i have an image jpg has 12 numbers 0 1 2 3 4 5 6 7 8 9 and writing using normal shape with no change on its shape i want to make a program read all the image get a part of it that has the 12 numbers (right down)then make ocr program read the numbers very accuracy.this program i...
15 May 2013 by amir tarek
i want a java code to can take an image taken in bad brightness condition and correct it to can recognize some numbers written on it the image i worked on has more light at left of it and dark at right is there any algorithm to do this Note. there is not the only case i will face i...
5 Dec 2011 by AmirAmirA
hey :)I found a very useful article on code project called Flood Fill , here is the link[^]Ok so, as you might know this project lets you choose a point on a picture and fills it with a colour. I am really trying to find out a way to get a list of the points on the picture that the...
28 Nov 2017 by AmnaRahman
I am getting this exception in the line 'image=new Image(OF.FileName)' How to solve this exception? I have added the opencv dlls to the project and all the references required but still getting the error.private void button1_Click(object sender, EventArgs e) { ...
2 Apr 2014 by AmnaRahman
I'm using HoughCircleTransformation class of AForge to detect circles. I want to draw circles on the image where the circles are detected (to highlight the circles on the original image). How can i modify the 'foreach loop' to do that? public Bitmap hough(Bitmap bmp) { ...
3 Apr 2014 by AmnaRahman
foreach (HoughCircle circle in circles) { Pen redPen = new Pen(Color.Red, 1); using (var graphics = Graphics.FromImage(bmp2)) { graphics.DrawEllipse(redPen, circle.X, circle.Y, circle.Radius, circle.Radius);...
9 Apr 2014 by AmnaRahman
I want to detect the two corners of an eye. I have tried using Harris corner detector but it shows other points too which are not needed. Is there any other technique that can be used?
27 Jul 2011 by Amund Gjersøe
Could implementing it as a widget solve your problem?If you do it as an Opera Widget, it will work as an app on most phones. Opera Mobile 10 should work on Win Mob 6.0 I think.Opera Widgets SDKAccess your phone's camera with WAC widgetsHave no clue as of how to do it, but the example...
3 Feb 2013 by analogx
Hi,To start with I have a application whose resolution is hard coded to 1024*768,now i want to scale down this application resolution to 800*480 so as to execute it on low res device,so my question is how can i dynamically re-size the existing images so as to make it fit for 800*480 resolution...
13 Feb 2014 by Anand Gunasekaran
Scanner automatically scans multiple pages using BackgroundWorker Thread
29 Oct 2015 by andres_fprado
The problem is that the computer is little-endian, which means that although the format is ARGB, the order the bytes are stored in memory is B - G - R - A (i.e., B is stored in a lower memory address than G, then R, and then A).Your code is assuming the opposite ordering of bytes. To get the...
17 Jan 2011 by Andrew Brock
There are a vast number of image processing libraries that are free and a lot of them are open source.My top 2 would be:CxImage[^] - Very comprehensiveGDI+[^] - pretty easy to use, well documented and heaps of samplesAs for the timing, that is simple. You just need to use a timing...
17 Jan 2011 by Andrew Brock
This code works properly on my Ubuntu virtual machine, but not on Windows as Windows only provides precision to the millisecond unless you use the performance counters.Windows will show the time as either 3000, 2000, 1000 or occasionally 0 microseconds because of this.Keep this in mind if...
23 Sep 2011 by Andrew Kirillov
The article describes an algorithm for recognition of optical glyphs in still images and video and then shows its application in 3D augmented reality.
18 Aug 2011 by Andrew Rissing
It depends on what exactly you're trying to do. You can try placing the images over each other and adjusting the opacity of the top image to show the image below (this would be similar to applying a watermark).
11 May 2013 by André Kraak
CodeProject has some good resources you can use to learn about image processing[^].
17 Oct 2015 by Andy Lanng
Hi,I'm working on some tools for a new game called Terra Tech(check it out ^_^).You can create "techs", save, swap and tweet them. The save file is a png snapshot image. They put the object specifications in the image using steganography. I am trying to reverse engineer...
8 Dec 2014 by Andy411
If You hav a large amaount of data to transfer via WCF, You should take a look at streaming:Take a look at http://msdn.microsoft.com/en-us/library/ms751463%28v=vs.110%29.aspx[^]
11 Mar 2011 by anilet v antony
I need help locating the error in this code snippet:byte[] a = objstud.viewtudentphoto(txtadminno.Text);System.IO.MemoryStream ms = new System.IO.MemoryStream(a);pictureBox2.Image = Image.FromStream(ms);I am getting the error here: pictureBox2.Image = Image.FromStream(ms);here...
20 Jul 2011 by ankur.mu
Hey! I need to convert 8 bpp avi file into 16 bpp avi file.Does anyone know how to do it?I used this code to get bitmap images from avi file. It works fine with 16 bpp or more but does not work for 8bpp avi files properly. public Bitmap GetBitmap(int position){ if(position >...
20 Jul 2011 by ankur.mu
I want to convert 32 bpp bitmap into 8 bpp.If anyone knows how to do it, plz help.Thanks in Advance.
20 Jul 2011 by ankur.mu
Here is the code to this :public static Bitmap ColorToGrayscale(Bitmap bmp){ int w = bmp.Width, h = bmp.Height, r, ic, oc, bmpStride, outputStride, bytesPerPixel; PixelFormat pfIn = bmp.PixelFormat; ColorPalette palette; Bitmap output; ...
21 Jul 2011 by ankur.mu
I want to compress an uncompressed avi file into MS-CRAM (Microsoft Video 1). If anyone knows how to do it please help me with the code.Thanks!
26 Jul 2011 by ankur.mu
Hey I am trying to read MPEG / AVI files on a microprocessor but I do not know the exact format of riff, header & chunk of the file.I anyone knows how to interpret the MPEG / AVI file on a CRAM microprocessor please help me with the format/code.Thanks!
12 Nov 2014 by Ann Marie Neufelder
I want to write code that does the following:Inputs:An image of a fully clothed human being (assume from head to toe)Dimensions of the human in that image (bust, waist, hips, height)Target dimensions (bust, waist, hips, height)Outputs:Transformed image which is just like original...
27 Jun 2017 by Anu Rox
I need to analyze the colors of a image and need to do it in java. Need to use HSV color mode What I have tried: I'm clueless about this and new to image processing.I only have two weeks to complete this.Please help.Thank you everyone.
17 Jul 2018 by anup.bhunia
I am not expert in this matter, but seems your case is rare, if it is scanned raw bitmap, you can directly go for create your own stitched bitmap(which is not very hard), may refer to; A Beginners Guide to Bitmaps[^] But if you already have a compressed file, i think you cant avoid loosing...
2 Jan 2013 by anuSL
How to store and do the comparison of hand gestures detect through a camera?what are the mechanisms can we use?Are we need to use artificial interligence for that comparison?Please give your ideas...Thank you..
10 Mar 2011 by apaka
How to swap Red and Blue channels on bitmap without using unsafe methods and fast in c#?Thanks in advance.Edit: Thanks . Here is the code in c#:private Bitmap SwapRedAndBlueChannels(Bitmap bitmap) { var imageAttr = new ImageAttributes(); ...
17 Mar 2011 by apaka
Is there a possibility to resize bitmap directly from stream , not loading it in bitmap object using Image.FromStream . I'm working with large images with sizes even of desktop backgrounds and I only have access to a stream from zip file.
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'...
10 Dec 2018 by Apriorit Inc, Vadym Zhernovyi
The experience of improving Mask R-CNN performance six to ten times by applying TensorRT
7 Mar 2019 by Apriorit Inc, Semyon Boyko
How to use this Google service and the free NVIDIA Tesla K80 GPU to achieve your own goals in training neural networks
30 Apr 2019 by Apriorit Inc, Semyon Boyko
The approach that allows you to make a neural network analyze the current frame while remembering the state of previous frames
22 Mar 2019 by Apriorit Inc, Vadym Zhernovyi
Learn more about the challenges we faced with dataset preparation and network configuration, and how these problems can be solved.
6 Oct 2011 by ARBebopKid
I suggest iterating through the image data.Determine the formula for the smallest circle which contains all the opaque points inside or on the circle.The center of that circle would be the center of the opaque object.[Edit]Find the two points that are farthest apart. distance =...
17 Oct 2012 by Areff
hello everybody ,i have a function in c++ which works correctly and its task is compress the BMP image similar to [[RLE] but encoding is not quite same as RLE , this code is written by experienced c++ programmer to send image to some kind of printer (with specific firmware) unfortunately the...
14 Mar 2013 by Ariana Bond
Hi,I am trying to put sharpen filter over an image in my application after cropping the image. The function i am using is not giving expected output , no changes are reflected in the image,Please check the function where does i am wrong.public static WriteableBitmap...
3 Dec 2016 by Arthur V. Ratz
Here's how: http://docs.opencv.org/2.4/doc/tutorials/imgproc/imgtrans/warp_affine/warp_affine.html