Separate touching objects and export images individually
Show older comments
Hi everyone,
I got an big image with a lot of histology sections in a series (look at image).

How can I separate and export the two images in the middle in an automatic way? I will have hundreds of these big images and there would probably be around 10-15 histological sections in one image.
I have tried to use watershed algorithm, but it detects several objects within a section and it didn't make a clear border between each section. I hope some of you got an better idea?
Beside that, is it possible to export the individual images afterwards without each section are touching each other? To show you how I would like the end product to look alike, I have used PhotoShop (PS) to isolate the section.

Thank you for your help
6 Comments
Anton Semechko
on 29 Jun 2018
Edited: Anton Semechko
on 29 Jun 2018
Can you provide more info about the problem? For example:
1) Large images containing multiple histology slices, will they always contain 2 complete histology slices, or does the number of complete histology slices vary among images?
2) Do the large images have the same dimensions?
3) Are histological slices always intact or some of them have been torn or severely deformed; and are thus no longer rectangular?
I am asking these questions because it is much easier to solve problems of this sort when you incorporate into the segmentation algorithm as much prior knowledge about the data as possible
Image Analyst
on 29 Jun 2018
What are "some PS"?
How did the "some PS" separate the image and replace the neighboring rectangles with textured background?
Nick
on 30 Jun 2018
Image Analyst
on 30 Jun 2018
Are all the tops tilted and bottoms tilted? If so we could find the top and bottom and then look for discontinuities.
If the background always lighter and/or smoother than the part in the tile you want to detect?
Nick
on 30 Jun 2018
Accepted Answer
More Answers (0)
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


