Thread Subject:
Analyse an image by creating layers

Subject: Analyse an image by creating layers

From: meenu Natarajan

Date: 27 Feb, 2011 14:17:33

Message: 1 of 10

Hi,

I have a doubt.

I think C++ is used in photoshop. Is that we can analyse an image using MATLAB by creating various layers as we do in photoshop? If yes how can we do that? Is there any specific functions available for it?

Thanks in advance.

Subject: Analyse an image by creating layers

From: ImageAnalyst

Date: 27 Feb, 2011 15:20:35

Message: 2 of 10

On Feb 27, 9:17 am, "meenu Natarajan" <cn_me...@yahoo.co.in> wrote:
> Hi,
>
> I have a doubt.
>
> I think C++ is used in photoshop. Is that we can analyse an image using MATLAB by creating various layers as we do in photoshop? If yes how can we do that? Is there any specific functions available for it?
>
> Thanks in advance.

---------------------------------------------------------------------------------
I hope this clears up your doubt:

% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);

% Now do your operations on each channel independently.
% What do you want to do?

% Then reconstruct it from the separate channels.
rgbImage 2= cat(3, redChannel, greenChannel, blueChannel );

(You didn't really doubt that MATLAB could do this, did you?)
I'm sure you want to do more than this though. So what's the rest of
your question? Do you want to upload your image(s) to uploadhouse.com
so you can ask questions about them?
-ImageAnalyst

Subject: Analyse an image by creating layers

From: meenu Natarajan

Date: 1 Mar, 2011 04:55:20

Message: 3 of 10

Hi image analyst,
Thanks for the reply.

I want to create separate layers to analyse an image. If I have a very big image, I want to create select a portion of the image as layer1 an another portion of the image as layer2.

I have to analyse each layer separately. It should be like in phototshop, such that if I select layer1 i should be able to access the properties of it and so on.

Thanks;
meenu
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <9b545946-5c23-4ca2-84d5-40474f750814@z27g2000prz.googlegroups.com>...
> On Feb 27, 9:17 am, "meenu Natarajan" <cn_me...@yahoo.co.in> wrote:
> > Hi,
> >
> > I have a doubt.
> >
> > I think C++ is used in photoshop. Is that we can analyse an image using MATLAB by creating various layers as we do in photoshop? If yes how can we do that? Is there any specific functions available for it?
> >
> > Thanks in advance.
>
> ---------------------------------------------------------------------------------
> I hope this clears up your doubt:
>
> % Extract the individual red, green, and blue color channels.
> redChannel = rgbImage(:, :, 1);
> greenChannel = rgbImage(:, :, 2);
> blueChannel = rgbImage(:, :, 3);
>
> % Now do your operations on each channel independently.
> % What do you want to do?
>
> % Then reconstruct it from the separate channels.
> rgbImage 2= cat(3, redChannel, greenChannel, blueChannel );
>
> (You didn't really doubt that MATLAB could do this, did you?)
> I'm sure you want to do more than this though. So what's the rest of
> your question? Do you want to upload your image(s) to uploadhouse.com
> so you can ask questions about them?
> -ImageAnalyst

Subject: Analyse an image by creating layers

From: Rune Allnor

Date: 1 Mar, 2011 06:48:16

Message: 4 of 10

On Mar 1, 5:55 am, "meenu Natarajan" <cn_me...@yahoo.co.in> wrote:
> Hi image analyst,
> Thanks for the reply.
>
> I want to create separate layers to analyse an image. If I have a very big image, I want to create select a portion of the image as layer1 an another portion of the image as layer2.
>
> I have to analyse each layer separately. It should be like in phototshop, such that if I select layer1 i should be able to access the properties of it and so on.

If you want to analyze the image like you do in photoshop,
you have two options:

1) Use photoshop

2) Replicate the fucntionality you want from
   photoshop in some other language

If those two are unacceptable, you have the third option,

3) Use whatever other tool is available to you,
   that lets you do the task but not the way you
   are used to from photoshop.

Rune

Subject: Analyse an image by creating layers

From: ImageAnalyst

Date: 1 Mar, 2011 11:18:07

Message: 5 of 10

On Feb 28, 11:55 pm, "meenu Natarajan" <cn_me...@yahoo.co.in> wrote:
> Hi image analyst,
> Thanks for the reply.
>
> I want to create separate layers to analyse an image. If I have a very big image, I want to create select a portion of the image as layer1 an another portion of the image as layer2.
>
> I have to analyse each layer separately. It should be like in phototshop, such that if I select layer1 i should be able to access the properties of it and so on.
>
> Thanks;
> meenu
--------------------------------------------------------------------
OK, no problem. It can be done with proper coding. some of which I
gave you above. But don't expect to build the entire Photoshop app in
MATLAB or you'll be at it a lifetime.

Subject: Analyse an image by creating layers

From: meenu Natarajan

Date: 1 Mar, 2011 21:03:19

Message: 6 of 10

Hi rune,

Thanks for the reply.

Meenu

Subject: Analyse an image by creating layers

From: meenu Natarajan

Date: 1 Mar, 2011 21:29:18

Message: 7 of 10

Hi imageanalyst,

Thanks for the reply.

I am not going to create the entire application of photoshop. I just want to analyse the image using many layers. I shall explain my post question in a little more clear way.

In Photoshop, We have the option of bringing two images together on the same window that each one is considered as a separate layer. I do not want to analyse two images on the same window. But a single image being splitted into many layers. Like if I have an image of a scenary. If I could adopt seed growing technique and make all the plants and trees being selected in a layer.Similary if I could select all animals in a layer, Rivers in one layer and so on. If I click on animal layer I want that animal layer alone to be highlighted such that only animals are alone highlighted with background layer being faded out. So that I can continue my analysis further only on the animal layer.

But as per the code,either red or green or blue channels of the entire image will be highlighted. Am I correct?

thanks;
Meenu

Subject: Analyse an image by creating layers

From: ImageAnalyst

Date: 1 Mar, 2011 21:52:39

Message: 8 of 10

On Mar 1, 4:29 pm, "meenu Natarajan" <cn_me...@yahoo.co.in> wrote:
> Hi imageanalyst,
>
> Thanks for the reply.
>
> I am not going to create the entire application of photoshop. I just want to analyse the image using many layers. I shall explain my post question in a little more clear way.
>
> In Photoshop, We have the option of bringing two images together on the same window that each one is considered as a separate layer. I do not want to analyse two images on the same window. But a single image being splitted into many layers. Like if I have an image of a scenary. If I could adopt seed growing technique and make all the plants and trees being selected in a layer.Similary if I could select all animals in a layer, Rivers in one layer and so on. If I click on animal layer I want that animal layer alone to be highlighted such that only animals are alone highlighted with background layer being faded out. So that I can continue my analysis further only on the animal layer.
>
> But as per the code,either red or green or blue channels of the entire image will be highlighted. Am I correct?
>
> thanks;
> Meenu

-----------------------------------------------------------------------------------------------------------------------
Meenu:
You can of course do this, with the proper coding. The code I gave
you extracts the color planes. How you (or your user) tells it to do
that is up to you. For example, you could put it in the callback of a
drop down list (what MATLAB calls a pop up even though it drops down
instead of up). I don't know what you mean by "highlighted." After
you make your changes, if any, you can display any of the color
channels, or the full RGB image with the imshow() function.
ImageAnalyst

Subject: Analyse an image by creating layers

From: meenu Natarajan

Date: 1 Mar, 2011 22:54:05

Message: 9 of 10

Hi imageanalyst,

Thank you very much for clearing my doubt.

Meenu

Subject: Analyse an image by creating layers

From: Prasanth

Date: 23 Jun, 2012 16:27:06

Message: 10 of 10

Hello Meenu
I am also trying to implement what you above mentioned. Could you elaborate as to how you achieved it.
Thanks in advance.

regards
Prasanth

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Contact us