selecting a region of interest based on greyscale J value
- From: mattyjbennett <mattyjbennett@xxxxxxxxxxxxxx>
- Date: Sat, 3 Jan 2009 07:45:32 -0800 (PST)
Hi all,
I'm afraid i'm new to this, but making progress. I'm making a module
in Matlab 7.5 which is able to read an image as an RGB array, convert
to greyscale (J data) and have toyed with code to be able to report
back the J value stored at x,y coordinate, do doing ok so far.
The next step however is causing me some headache:
I want to open up a colour image in the viewer, select a few pixels
with the mouse and from their J values create a region of interest.
(similar to the 'magic wand' tool in Photoshop). I then want to save
the x,y coords of these pixels and also for each of the selected (will
probably only seelct about 5) export the pixel colour data and J value
to a database table, so:
From my image,
1, export each selected pixel (by the user) into a table, storing RGB
and J (greyscale) value for each. This dataset stored with a name
(e.g. actor 1's hat) which can be retrieved by another module later
on.
2. from the selected pixels and (I suspect using block operation /
nearest neighbour) determine all of the pixels which have similar J
values that are nearby and mark them out in a new array.
The intention is to the affect a new image stored as an I (RGB matrix)
which is in fact a greyscale image (no colour) but saved as a BMP or
JPG in RGB mode as I want to add colour to the image later on. (more
on that another time)
I realise that there could be a lot of similar data here so am only
interested in modal data (e.g. if there are lots of J data: 101,
132,133,133,139,133,133,101,101,102) I really only need to store:
101,133,139
I hope that makes sense. I'll send what I've done so far on the
initial coord selection below, but if any kind soul can help I'd be
grateful.
Best regards,
Matthew Bennett
.
- Follow-Ups:
- Re: selecting a region of interest based on greyscale J value
- From: Image Analyst
- Re: selecting a region of interest based on greyscale J value
- From: mattyjbennett
- Re: selecting a region of interest based on greyscale J value
- Prev by Date: Re: retart matlab after changing class methods?
- Next by Date: Re: selecting a region of interest based on greyscale J value
- Previous by thread: curious problem with sparse matrices that have explicit "0" entries.....
- Next by thread: Re: selecting a region of interest based on greyscale J value
- Index(es):
Relevant Pages
|
Loading