Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
image processing

Subject: image processing

From: Mathew Thomas

Date: 13 Aug, 2009 17:45:04

Message: 1 of 5

Hey All,

I have a binary image. On the black portion of the image, I want some known pixels to be white...How to do I change these pixel colors to white??

Thanks,

Matt

Subject: image processing

From: Chaos

Date: 13 Aug, 2009 22:25:05

Message: 2 of 5

"Mathew Thomas" <mathew99@gmail.com> wrote in message <h61jf0$7em$1@fred.mathworks.com>...
> Hey All,
>
> I have a binary image. On the black portion of the image, I want some known pixels to be white...How to do I change these pixel colors to white??
>
> Thanks,
>
> Matt

take a class on image processing.

if 2^bits=white then 0=black
QED

Subject: image processing

From: Maider Marin

Date: 14 Aug, 2009 01:44:02

Message: 3 of 5

a binary image is a matrix of 1s and 0s, so if you now the position of the pixels that you want to change then work it as a matrix
X is the image of 50x50 if you want a 1 in position (x,y)= (3,5) then go X(3,5)=1 and you have your one in that position.
If is more extense my first thought you can work with for loops in the same way
for example if you want 1 in the portion from x=30 to 50 and y=10 to 15 then

for i=30:50
  for j=10:15
    X(i,j)=1
 end
end
I hope is what you want to do:)

"Mathew Thomas" <mathew99@gmail.com> wrote in message <h61jf0$7em$1@fred.mathworks.com>...
> Hey All,
>
> I have a binary image. On the black portion of the image, I want some known pixels to be white...How to do I change these pixel colors to white??
>
> Thanks,
>
> Matt

Subject: image processing

From: Mathew Thomas

Date: 14 Aug, 2009 14:46:19

Message: 4 of 5

Thanks buddy...Appreciate your help...

Matt

"Maider Marin" <mayejudi@hotmail.com> wrote in message <h62fh2$l12$1@fred.mathworks.com>...
> a binary image is a matrix of 1s and 0s, so if you now the position of the pixels that you want to change then work it as a matrix
> X is the image of 50x50 if you want a 1 in position (x,y)= (3,5) then go X(3,5)=1 and you have your one in that position.
> If is more extense my first thought you can work with for loops in the same way
> for example if you want 1 in the portion from x=30 to 50 and y=10 to 15 then
>
> for i=30:50
> for j=10:15
> X(i,j)=1
> end
> end
> I hope is what you want to do:)
>
> "Mathew Thomas" <mathew99@gmail.com> wrote in message <h61jf0$7em$1@fred.mathworks.com>...
> > Hey All,
> >
> > I have a binary image. On the black portion of the image, I want some known pixels to be white...How to do I change these pixel colors to white??
> >
> > Thanks,
> >
> > Matt

Subject: image processing

From: Mathew Thomas

Date: 14 Aug, 2009 14:49:18

Message: 5 of 5

Newbie?? CLueless?? you have issues man!!! Please dont ever try to help others, because you definitely dont want to..... And what ever or whereevr my programming skills lie, its non of your bussiness sir....Take care..

Matt.

"Chaos" <rothko.fan@gmail.com> wrote in message <h623s1$6vm$1@fred.mathworks.com>...
> "Mathew Thomas" <mathew99@gmail.com> wrote in message <h61jf0$7em$1@fred.mathworks.com>...
> > Hey All,
> >
> > I have a binary image. On the black portion of the image, I want some known pixels to be white...How to do I change these pixel colors to white??
> >
> > Thanks,
> >
> > Matt
>
> take a class on image processing.
>
> if 2^bits=white then 0=black
> QED

Tags for this Thread

What are tags?

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.

Contact us