| MATLAB Central > MATLAB Newsreader > Detect black pixels in an image |
|
|
|
Subject: Detect black pixels in an image From: Hugh Thompson Date: 14 Mar, 2010 10:07:05 Message: 1 of 11 |
|
Hello, |
|
Subject: Detect black pixels in an image From: John D'Errico Date: 14 Mar, 2010 10:50:08 Message: 2 of 11 |
|
"Hugh Thompson" <nads_2589@hotmail.com> wrote in message <hnicg9$fj0$1@fred.mathworks.com>... |
|
Subject: Detect black pixels in an image From: ImageAnalyst Date: 14 Mar, 2010 14:17:22 Message: 3 of 11 |
|
Hugh Thompson: |
|
Subject: Detect black pixels in an image From: Hugh Thompson Date: 14 Mar, 2010 15:10:20 Message: 4 of 11 |
|
Thanks, John. The fuzzycolor tool looks like a good option, but how can I make it work for an image to get a '1' in the exact locations where black is detected in the image? Iscolor is returing an mx1 array, just one long line of numbers, mostly zeros as far as I can see. Is there a way I can actually get the image as it is with everything black replaced by 1 and everything else 0, or something like that? |
|
Subject: Detect black pixels in an image From: John D'Errico Date: 14 Mar, 2010 15:18:05 Message: 5 of 11 |
|
"Hugh Thompson" <nads_2589@hotmail.com> wrote in message <hniu8s$8t6$1@fred.mathworks.com>... |
|
Subject: Detect black pixels in an image From: John D'Errico Date: 14 Mar, 2010 15:23:02 Message: 6 of 11 |
|
"Hugh Thompson" <nads_2589@hotmail.com> wrote in message <hniu8s$8t6$1@fred.mathworks.com>... |
|
Subject: Detect black pixels in an image From: ImageAnalyst Date: 14 Mar, 2010 15:24:02 Message: 7 of 11 |
|
Hugh Thompson: |
|
Subject: Detect black pixels in an image From: Hugh Thompson Date: 15 Mar, 2010 08:57:04 Message: 8 of 11 |
|
Thanks for all the help, John and ImageAnalyst. John, I tried to reshape but the number of elements in iscolor is not the same as the number of pixels in the original image. So I didn't know what to do next. |
|
Subject: Detect black pixels in an image From: ImageAnalyst Date: 15 Mar, 2010 11:43:08 Message: 9 of 11 |
|
A question first: What are histdown and histup? They don't seem to |
|
Subject: Detect black pixels in an image From: Hugh Thompson Date: 15 Mar, 2010 21:36:06 Message: 10 of 11 |
|
Yes. Sorry about that!! I changed the names before posting to make them a bit easier to read...:S |
|
Subject: Detect black pixels in an image From: ImageAnalyst Date: 16 Mar, 2010 00:42:39 Message: 11 of 11 |
|
It looks like it iterates until it settles on a threshold that is |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| color | MatÃas Alonso | 26 Aug, 2010 20:28:27 |
Contact us at files@mathworks.com
