- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to search and crop the region with white color?
For example, array[6*5]
00 00 00 00 00 03
00 01 00 00 00 00
00 01 00 00 00 00
00 01 00 02 00 00
00 00 02 02 02 00
(non-zero refers to white color)
is there any function which could find those 3 regions' positions (i need these positions to crop the original image)?
01
01
01
00 02 00
02 02 02
03
I know that how to threshold and copy the roi, but i don't know how to find the regions...
Thanks!
For example, array[6*5]
00 00 00 00 00 03
00 01 00 00 00 00
00 01 00 00 00 00
00 01 00 02 00 00
00 00 02 02 02 00
(non-zero refers to white color)
is there any function which could find those 3 regions' positions (i need these positions to crop the original image)?
01
01
01
00 02 00
02 02 02
03
I know that how to threshold and copy the roi, but i don't know how to find the regions...
Thanks!
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page