You are accessing this site in a read-only mode. For full access to all member benefits, including message posting, please login or register. Registration is completely free, simple, and takes only a few seconds.
The message you are replying to and its parents are listed in the reverse order with the most recent posts first. This might not be the whole discussion thread. To read all the messages in this thread please click here.
Re: JPEG-compressed TIFF
| Oliver Schmitt | 24 Jul 2008 17:52 |
"Oliver Schmitt" <schmitt@med.uni-rostock.de> wrote in message <g69oiv$hg7$1@fred.mathworks.com>...
> If imread() should open a JPEG-compressed 24bit RGB Tiff > image the following error message is generated: [quoted text clipped - 19 lines] > > Thanks, oliver I find out that tiffcp is able to read/convert different types of compression within the tiff format. So why not using something like
>>[status image]= system('tiffcp -c jpeg hugeOne.tif,5 smallOne.tif')
what provides some errors: TIFFReadDirectory: Warning, hugeOne.tif: unknown field with tag 347 (0x15b) encountered. TIFFReadDirectory: Warning, hugeOne.tif: unknown field with tag 347 (0x15b) encountered. TIFFSetField: hugeOne.tif: Unknown pseudo-tag 65538. TIFFSetField: smallOne.tif: Unknown pseudo-tag 65537. TIFFSetField: smallOne.tif: Unknown pseudo-tag 65538. hugeOne.tif: JPEG compression support is not configured. hugeOne.tif: Error, can't read tile at 0 0.
However, using the shell with tiffcp -c jpeg hugeOne.tif,5 smallOne.tif works good.
So there must be some further things going on when tiffcp is using jpeg decompression what don'twork either with [x y]=unix() and [x y]=system().
Another problem is that 5th layer of the multi-tiff is written to smallOne.tif. However, it is written to a new file. How could it be possible to redirect the writting stream directly into "a" matlab matrix?
|
| Oliver Schmitt | 24 Jul 2008 11:21 |
If imread() should open a JPEG-compressed 24bit RGB Tiff image the following error message is generated: ??? JPEG-compressed TIFF images are not supported.
Image reading by imread of JPEG-compressed 24bit RGB Tiff images is not supported. Naturally, such images can be converted by ThumbsPlus or Irfanview in batch mode.
However if images are huge 100000x200000 pixels and are layered in the tiff file then they con not converted properly by these tools.
I wish to open these files directly into a 4D matrix (RGB with different levels of resolution) in matlab to start image analysis.
I suppose this could be done by using parts of the build in imread function and program an imread_jpeg_encoded_tiff() function?
Has anyone another idea?
Thanks, oliver
|
Quick links: