Re: Three questions [message #11385] |
Thu, 09 April 1998 00:00 |
muswick
Messages: 10 Registered: April 1998
|
Junior Member |
|
|
In article <352BD7FA.256B@bial1.ucsd.edu>,
David Foster <foster@bial1.ucsd.edu> wrote:
>
> biomedical wrote:
>>
>> Three questions:
>>
>> 1: what is 'sharp' function to images, or 'sharpening'?
>> what is 'unsharp' ? how to do them in IDL?
>
> These are just basic filtering techniques, to enhance either
> low-frequency or high-frequency information in the image.
> You can use convolution (CONVOL) with specialized kernels to
> perform both.
'sharpening' is as David states, a filtering technique to enhance
high-frequency information. If you plot the gray scales of one row
of an image, you would see the plotted points go up for white and
down for black. At the edges of objects, you see several points
changing in value (from the left side of the edge) to the value
from the other edge.
.
... .... .. .
.. . .
.. . .
... .... . ..
.
10 pixel 10 pixel 10 pixel plot
plot of orig. plot sharpened sharpened with
(ideal) overshoot.
The unsharp mask is a method of sharpening, in which the original
image is smoothed (unsharpened), then the difference of
(original - smooth) is the unsharp mask. This mask is then added
in various degrees to the original to effect sharpening.
Applying to the above example.
gray
value
6 .
5 ... .. .. .
4 .. ... .
3 .. ... .
2 ... .. . ..
1 . .
0 .. .... ..
-1 .
10 pixel 10 pixel 10 pixel plot 10 pixel plot
plot of orig. plot smoothed unshparp mask sharpened by adding
(orig - smooth) the unsharp mask
Now I'll proceed with the rest of your questions.
>
>> 2: how to read 1-bit Tiff (mono) file?
Unfortunately, RSI does not provide a very robust set of routines to
read some of the standard file formats, especially those items that
are not part of the baseline.
Typically, 1-bit tiff images are stored as G4 encoded Hoffman/Run-Length.
IDL unfortunately does not support this. One method I know to read
these images would be to use Microsoft Imager on a PC, then convert and
store the images as 8bit gray scale. Then read this image into IDL.
There is software to convert TIFF files to other formats, it just
depends on you platform and compiliers etc.
I would love IDL to support G3/G4 TIFF, and 12 bit JPEG.
>> 3: how to do the Matlab image processing, please take a look at:
>> http://www.mathworks.com/demos/toolbox/image/ipss0011.html
>> how to removes the minor regions, skeletonize, ...
>
...
>
> IDL can be used to do what the slide show does, but will require
> some coding. When you get a better idea of what you need, ask
> the newsgroup again, and be more specific. I'm sure someone has
> coded some of these tasks.
>
> Dave
>
David is correct on the fact that IDL can do all of the operations,
though some procedures may need to be written. I think I am most
concerned at this point on your input data, given your request of 1-bit
TIFF images. Are your images already binary? or are they half-tone
representations?
Good Luck
Gary Muswick
Image Analysis
University Hospitals of Cleveland
muswick@uhrad.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
|
|
|
Re: Three questions [message #11389 is a reply to message #11385] |
Wed, 08 April 1998 00:00  |
biomedical
Messages: 13 Registered: January 1998
|
Junior Member |
|
|
David Foster wrote:
>> 1: what is 'sharp' function to images, or 'sharpening'?
>> what is 'unsharp' ? how to do them in IDL?
>
> These are just basic filtering techniques, to enhance either
> low-frequency or high-frequency information in the image.
> You can use convolution (CONVOL) with specialized kernels to
> perform both.
>
Thank you for your help. It seems that low and high frequency filtering
only give low and high freqency components of the image, the result
image doesn't seem sharper. I used butterwidth, hanning, expontential...
maybe you have some special filter. Band pass and reject do not work
for me either. The convolution (convol) seems to give the same image
if the kernel is delta function, otherwise it will give unsharp results.
Could you give me more specific kernel or filter information?
>> 2: how to read 1-bit Tiff (mono) file?
>> 3: how to do the Matlab image processing, please take a look at:
>> http://www.mathworks.com/demos/toolbox/image/ipss0011.html
>> how to removes the minor regions, skeletonize, ...
>
> Get a good book on image processing, and look into Convolution
> (IDL's CONVOL) as a means to do filtering,
> edge detection, feature removal, etc. The BW* Matlab routines
> are very specialized functions, from the Image Processing toolbox
> I would guess; I'm not sure IDL has anything like that. But do
> look into LABEL_REGION, ROBERTS, SOBEL, SEARCH2D, ERODE, DILATE.
>
I know IDL can easily do something, and also can do something else
not that easy. I expected IDL to do this 'skeleton' easy. I found
myself that it is not easy at my level to do this. I hope someone who
has code for this and is willing to contribute.
BTW, my question is very specific, just do what Matlab did!
you can use their image to test. Finaly you can get just enclosed
lines which segments the region.
> IDL can be used to do what the slide show does, but will require
> some coding. When you get a better idea of what you need, ask
> the newsgroup again, and be more specific. I'm sure someone has
> coded some of these tasks.
>
> Dave
>
>>
>> Thanks, please do NOT send me emails, just post here.
>>
>> Chester
>
> --
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
> David S. Foster Univ. of California, San Diego
> Programmer/Analyst Brain Image Analysis Laboratory
> foster@bial1.ucsd.edu Department of Psychiatry
> (619) 622-5892 8950 Via La Jolla Drive, Suite 2240
> La Jolla, CA 92037
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|
Re: Three questions [message #11392 is a reply to message #11389] |
Wed, 08 April 1998 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
biomedical wrote:
>
> Three questions:
>
> 1: what is 'sharp' function to images, or 'sharpening'?
> what is 'unsharp' ? how to do them in IDL?
These are just basic filtering techniques, to enhance either
low-frequency or high-frequency information in the image.
You can use convolution (CONVOL) with specialized kernels to
perform both.
> 2: how to read 1-bit Tiff (mono) file?
> 3: how to do the Matlab image processing, please take a look at:
> http://www.mathworks.com/demos/toolbox/image/ipss0011.html
> how to removes the minor regions, skeletonize, ...
Get a good book on image processing, and look into Convolution
(IDL's CONVOL) as a means to do filtering,
edge detection, feature removal, etc. The BW* Matlab routines
are very specialized functions, from the Image Processing toolbox
I would guess; I'm not sure IDL has anything like that. But do
look into LABEL_REGION, ROBERTS, SOBEL, SEARCH2D, ERODE, DILATE.
IDL can be used to do what the slide show does, but will require
some coding. When you get a better idea of what you need, ask
the newsgroup again, and be more specific. I'm sure someone has
coded some of these tasks.
Dave
>
> Thanks, please do NOT send me emails, just post here.
>
> Chester
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|