Login  Register

Turboreg: Problem with jpg and png image format

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Turboreg: Problem with jpg and png image format

JoLi
5 posts
Hello everybody,

I have a problem I can't figure out alone any more. Out of my microscope data I create image files using mathlab. with turboreg I want to align the images with respect to another. This works perfekt when I create .jpg files with mathlab, but if I use .png or even .tif images the error "At least two grayscale or RGB-stack images are required".
I tried to get rid of this problem changing the export options in mathlab to grayscale, but it doesn't work. This option is also under the "rendering" dialog box, so i am even not sure if this is the right place to change the export options but I didn't finde any other options.

I want to use .png images because it is a lossles compression and .jpg smoothes my data, though changing it a bit which is not wanted. My data is only in grayscale, but the images seem to appear as colour, what I don't understand. I would be very happy if anybody has some ideas.

Thank you.

Jonas
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Turboreg: Problem with jpg and png image format

Joel Sheffield
221 posts
Hi Jonas,

Maybe, even though you convert to grayscale using mathlab, the program
saves the file in an rgb format.  You can convert to an 8-bit grayscale
image in ImageJ by loading the images, and selecting Image>type, and
selecting 8-bit grayscale as an option.

Joel


On Wed, Mar 6, 2013 at 12:56 PM, JoLi <[hidden email]>wrote:

> Hello everybody,
>
> I have a problem I can't figure out alone any more. Out of my microscope
> data I create image files using mathlab. with turboreg I want to align the
> images with respect to another. This works perfekt when I create .jpg files
> with mathlab, but if I use .png or even .tif images the error "At least two
> grayscale or RGB-stack images are required".
> I tried to get rid of this problem changing the export options in mathlab
> to
> grayscale, but it doesn't work. This option is also under the "rendering"
> dialog box, so i am even not sure if this is the right place to change the
> export options but I didn't finde any other options.
>
> I want to use .png images because it is a lossles compression and .jpg
> smoothes my data, though changing it a bit which is not wanted. My data is
> only in grayscale, but the images seem to appear as colour, what I don't
> understand. I would be very happy if anybody has some ideas.
>
> Thank you.
>
> Jonas
>
>
>
>
> --
> View this message in context:
> http://imagej.1557.n6.nabble.com/Turboreg-Problem-with-jpg-and-png-image-format-tp5002040.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--


Joel B. Sheffield, Ph.D
Department of Biology
Temple University
Philadelphia, PA 19122
Voice: 215 204 8839
e-mail: [hidden email]
URL:  http://astro.temple.edu/~jbs

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Turboreg: Problem with jpg and png image format

JoLi
5 posts
Hey Joel,

yeah, that was the problem. I will have to work at the matlab output, the pictures are still truecolor, which means rgb. With the change in format via imagej the problem is solved.

Thank you !