C# C# breaking monochrome image down into new images.

  • Thread starter Thread starter Superposed_Cat
  • Start date Start date
  • Tags Tags
    Image Images
AI Thread Summary
The discussion centers on techniques for segmenting images into separate bitmaps based on color values, specifically after applying edge detection and thresholding to create black and white blobs. The user seeks methods to identify and extract these blobs into individual bitmaps without relying on external libraries, emphasizing a desire to understand the underlying process. Clarifications reveal that the goal is to crop the original image based on the identified white regions in the processed image. Key terms relevant to this process include object extraction, image segmentation, and auto-cropping, with a specific need for determining the four edge points of the blobs for accurate cropping.
Superposed_Cat
Messages
388
Reaction score
5
Hi all, c# coder here, i am seeking ways to segment images into separate bitmaps based on colour values.

I have an image, and i have already applied edge detection and changed the threshold to 230 to give me black and white "blobs". Now the issue is finding these blobs, and copying them into separate bitmaps. Now I want to do this without external libraries as this is for me to understand how it works.

Every time I Google this I get a opencv or aforge link. Does anyone know of a link or a technique name? Note: it is not breaking it down to monochrome that I seek it is separating the black from the white.

Any help appreciated, thanks.
 
Technology news on Phys.org
It sounds like "masking" to me.
http://en.wikipedia.org/wiki/Mask_(computing )
 
Last edited by a moderator:
nice but not what I'm looking for. that combines to images, I'm looking to separate.
 
Superposed_Cat said:
nice but not what I'm looking for. that combines to images, I'm looking to separate.

I'm not sure I understand. If the image is already in black and white, isn't it technically already separated?
 
I don't know quite what you want, but I'm guessing that you want to crop copies of your original image based on where the blobs are in the filtered (edge-enhanced, high-contrast) image.

So, if I'm guessing correctly, your original picture has several relatively bright objects on a dark background. You apply the 230 contrast to create a mask of the object of interest, but you do an edge-enhancement first to keep the 230 contrast from trimming the objects too much.

Now you want to identify continuous white regions and draw rectangles around them so you can use those rectangles to crop copies of the original image.

Is this what you're trying to do?

-----
If I'm guessing right, the terms would be object extraction (which you have already done), image segmentation, and auto-cropping. Also, to some extent, "image detection".
 
Last edited:
  • Like
Likes 1 person
yes scott!thanks! that is what I want. but I need to get four edge points so I can crop them.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top