[Scilab-users] Fwd: Re: scilab and tif-files

classic Classic list List threaded Threaded
3 messages Options
Antoine Monmayrant Antoine Monmayrant
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Fwd: Re: scilab and tif-files

Houps,

I mailed Philipp directly, so here is a copy of my answer and available script to read a subset of TIFF.
It might be useful for some of you...

Antoine



-------- Forwarded Message --------
Subject: Re: [Scilab-users] scilab and tif-files
Date: Sun, 12 Jul 2020 20:39:20 +0200
From: Antoine Monmayrant [hidden email]
To: P M [hidden email]


Hello Philipp,

I played a bit with tiff format a while ago (as none of the image processing toolboxes could be installed on my work computers).
The long story short: one of our microscope is storing data in a format (*.ols) that is just tiff file with some metadata.
I hacked a bit of the tiff specification to only support the subset of tiff used by this microscope.
So it might not be exactly what you need, it depends on the tiff files you are using.
But maybe it can help you design your own homemade solution.

Cheers,

Antoine

On 10/07/2020 11:52, P M wrote:
Dear experts,

I do have a tif-file....in fact: lot's of them and of different size.

Pixel values are: 
- red
- green
- white
- black

Now, I want to convert these files in Black/white images, such as:

- red pixels --> black
- green pixels --> white
- black pixels --> black
- white pixels --> black

in other words:    Only the green pixels are of interest.

Now, as I use IPCV:

- imread()...does not handle tif-files correctly
--> it does read the files, but the output is a boolean-matrix......that doesn't help

- tifread()...does only handle images with size 1024x1024 ... doesn't help

Is there a way to read TIF-files into Scilab and keep the R-G-B-channels?


Thank you,
Philipp





_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

readOLS.sci (50K) Download Attachment
testOLS_TIFF_scilabusers.sce (718 bytes) Download Attachment
der_Phil der_Phil
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Re: scilab and tif-files

Hi Antoine,

This does help indeed...

with    tiff_get_image_prop()     I get the correct RGB-image from the TIf-file.

Thank you very much.

Best Regards,
Philipp






Am Mo., 13. Juli 2020 um 08:25 Uhr schrieb Antoine Monmayrant <[hidden email]>:

Houps,

I mailed Philipp directly, so here is a copy of my answer and available script to read a subset of TIFF.
It might be useful for some of you...

Antoine



-------- Forwarded Message --------
Subject: Re: [Scilab-users] scilab and tif-files
Date: Sun, 12 Jul 2020 20:39:20 +0200
From: Antoine Monmayrant [hidden email]
To: P M [hidden email]


Hello Philipp,

I played a bit with tiff format a while ago (as none of the image processing toolboxes could be installed on my work computers).
The long story short: one of our microscope is storing data in a format (*.ols) that is just tiff file with some metadata.
I hacked a bit of the tiff specification to only support the subset of tiff used by this microscope.
So it might not be exactly what you need, it depends on the tiff files you are using.
But maybe it can help you design your own homemade solution.

Cheers,

Antoine

On 10/07/2020 11:52, P M wrote:
Dear experts,

I do have a tif-file....in fact: lot's of them and of different size.

Pixel values are: 
- red
- green
- white
- black

Now, I want to convert these files in Black/white images, such as:

- red pixels --> black
- green pixels --> white
- black pixels --> black
- white pixels --> black

in other words:    Only the green pixels are of interest.

Now, as I use IPCV:

- imread()...does not handle tif-files correctly
--> it does read the files, but the output is a boolean-matrix......that doesn't help

- tifread()...does only handle images with size 1024x1024 ... doesn't help

Is there a way to read TIF-files into Scilab and keep the R-G-B-channels?


Thank you,
Philipp





_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Tan Chin Luh Tan Chin Luh
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Re: scilab and tif-files

Hi Antoine, 

Great to hear that your function works well so quite some case, if you don't mind, could I put into coming IPCV release?

Thanks.

rgds,
CL


---- On Tue, 14 Jul 2020 17:52:13 +0800 P M <[hidden email]> wrote ----

Hi Antoine,


This does help indeed...

with    tiff_get_image_prop()     I get the correct RGB-image from the TIf-file.

Thank you very much.

Best Regards,
Philipp






Am Mo., 13. Juli 2020 um 08:25 Uhr schrieb Antoine Monmayrant <[hidden email]>:

Houps,

I mailed Philipp directly, so here is a copy of my answer and available script to read a subset of TIFF.
It might be useful for some of you...

Antoine



-------- Forwarded Message --------
Subject:
Re: [Scilab-users] scilab and tif-files
Date:
Sun, 12 Jul 2020 20:39:20 +0200
From:
Antoine Monmayrant [hidden email]
To:
P M [hidden email]


Hello Philipp,

I played a bit with tiff format a while ago (as none of the image processing toolboxes could be installed on my work computers).
The long story short: one of our microscope is storing data in a format (*.ols) that is just tiff file with some metadata.
I hacked a bit of the tiff specification to only support the subset of tiff used by this microscope.
So it might not be exactly what you need, it depends on the tiff files you are using.
But maybe it can help you design your own homemade solution.

Cheers,

Antoine

On 10/07/2020 11:52, P M wrote:
Dear experts,

I do have a tif-file....in fact: lot's of them and of different size.

Pixel values are: 
- red
- green
- white
- black

Now, I want to convert these files in Black/white images, such as:

- red pixels --> black
- green pixels --> white
- black pixels --> black
- white pixels --> black

in other words:    Only the green pixels are of interest.

Now, as I use IPCV:

- imread()...does not handle tif-files correctly
--> it does read the files, but the output is a boolean-matrix......that doesn't help

- tifread()...does only handle images with size 1024x1024 ... doesn't help

Is there a way to read TIF-files into Scilab and keep the R-G-B-channels?


Thank you,
Philipp





_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users