Hi All,
I need help in doing the following. I'm writting a macro language program in which , I did setPixel(x, y, value); where (xmin=0,xmax=512,ymin=0,ymax=512)and values are different intensities i.e.1011,1001,1100 etc....... I want to get a .tif image from these datas so that I can save the image and it should look similar to an imagej .tif image.Is it possible to do this?If yes how? Please help. Thanks. Sasmita |
Write your pxiel value in a array of x colum and y row. Just put the value at
the good place, save it in .txt file. Finally import it as a text image : File>Import>text image On Thu, 12 Jun 2008 12:40:47 -0500, Sasmita Rath wrote > Hi All, > I need help in doing the following. > I'm writting a macro language program in which , > > I did setPixel(x, y, value); where (xmin=0,xmax=512,ymin=0,ymax=512) > and values are different intensities i.e.1011,1001,1100 etc....... > > I want to get a .tif image from these datas so that I can save the > image and it should look similar to an imagej .tif image.Is it > possible to do this?If yes how? Please help. > > Thanks. > Sasmita Ludwig Berland PhD student, group "Membranes et Fonctions Cellulaires" Physical chemistry - UMR 168 CNRS/IC Curie Institute, Research Division 11, rue Pierre et Marie Curie 75005 Paris tel: (33) 1 42 34 64 62 |
Hi there,
much easier, if you already have your image displayed in an ImageJ window (you should, as otherwise setPixel() makes no sense to me!?) simply add the following line to your macro: run("Save", "save=[<Add your path and your filename.tif without the "<>" brackets here>]"); (You can find out more about such command with the macro recorder) Sincerely Joachim ImageJ Interest Group <[hidden email]> schrieb am 12.06.2008 20:19:47: > Write your pxiel value in a array of x colum and y row. Just put the value at > the good place, save it in .txt file. Finally import it as a text image : > File>Import>text image > > On Thu, 12 Jun 2008 12:40:47 -0500, Sasmita Rath wrote > > Hi All, > > I need help in doing the following. > > I'm writting a macro language program in which , > > > > I did setPixel(x, y, value); where (xmin=0,xmax=512,ymin=0,ymax=512) > > and values are different intensities i.e.1011,1001,1100 etc....... > > > > I want to get a .tif image from these datas so that I can save the > > image and it should look similar to an imagej .tif image.Is it > > possible to do this?If yes how? Please help. > > > > Thanks. > > Sasmita > > > Ludwig Berland > PhD student, group "Membranes et Fonctions Cellulaires" > Physical chemistry - UMR 168 CNRS/IC > Curie Institute, Research Division > 11, rue Pierre et Marie Curie 75005 Paris > tel: (33) 1 42 34 64 62 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |
Dear ImageJ group,
Yes now I can save the image.Many thanks for help.I was doing a mistake by the way. Sasmita ----- Original Message ----- From: "Joachim Wesner" <[hidden email]> To: [hidden email] Sent: Friday, June 13, 2008 2:56:52 AM GMT -06:00 US/Canada Central Subject: Antwort: Re: How to get .tif image from given intensities at pixel(x,y)? Hi there, much easier, if you already have your image displayed in an ImageJ window (you should, as otherwise setPixel() makes no sense to me!?) simply add the following line to your macro: run("Save", "save=[<Add your path and your filename.tif without the "<>" brackets here>]"); (You can find out more about such command with the macro recorder) Sincerely Joachim ImageJ Interest Group <[hidden email]> schrieb am 12.06.2008 20:19:47: > Write your pxiel value in a array of x colum and y row. Just put the value at > the good place, save it in .txt file. Finally import it as a text image : > File>Import>text image > > On Thu, 12 Jun 2008 12:40:47 -0500, Sasmita Rath wrote > > Hi All, > > I need help in doing the following. > > I'm writting a macro language program in which , > > > > I did setPixel(x, y, value); where (xmin=0,xmax=512,ymin=0,ymax=512) > > and values are different intensities i.e.1011,1001,1100 etc....... > > > > I want to get a .tif image from these datas so that I can save the > > image and it should look similar to an imagej .tif image.Is it > > possible to do this?If yes how? Please help. > > > > Thanks. > > Sasmita > > > Ludwig Berland > PhD student, group "Membranes et Fonctions Cellulaires" > Physical chemistry - UMR 168 CNRS/IC > Curie Institute, Research Division > 11, rue Pierre et Marie Curie 75005 Paris > tel: (33) 1 42 34 64 62 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |
Free forum by Nabble | Edit this page |