[Scilab-users] extract pixel values along a profile

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

[Scilab-users] extract pixel values along a profile

Hi,

From an image I want to extract the pixel values along a profile.

The profile coordinates are set automatically, so that I do not have to click in the image.

How do I get the pixel values for that profile?

In IPCV()  I find the function:   improfile() which would do the very thing I want.

But this function waits for mouse clicks.

Is there somehow a way to give this function a fake mouse click?

Thanks,
Philipp

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

Re: extract pixel values along a profile

Hi,

Try to replace the attached 2 files into your IPCV macros folder to patch the existing one and restart scilab, and the syntax should be:

improfile(S,[xc1,yc2;xc2,yc2]);

it it does not works, try to exec the sci file and run again.

hope this helps.

rgds,
CL

On 14/3/2019 10:27 PM, P M wrote:
Hi,

From an image I want to extract the pixel values along a profile.

The profile coordinates are set automatically, so that I do not have to click in the image.

How do I get the pixel values for that profile?

In IPCV()  I find the function:   improfile() which would do the very thing I want.

But this function waits for mouse clicks.

Is there somehow a way to give this function a fake mouse click?

Thanks,
Philipp

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


-- 
Tan Chin Luh
Trity Technologies Sdn Bhd
Tel : +603 80637737
HP : +6013 3691728

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

improfile.bin (19K) Download Attachment
improfile.sci (3K) Download Attachment
der_Phil der_Phil
Reply | Threaded
Open this post in threaded view
|

Re: extract pixel values along a profile

Thank you,
that does it.
Philipp

Am Do., 14. März 2019 um 17:34 Uhr schrieb Tan Chin Luh <[hidden email]>:
Hi,

Try to replace the attached 2 files into your IPCV macros folder to patch the existing one and restart scilab, and the syntax should be:

improfile(S,[xc1,yc2;xc2,yc2]);

it it does not works, try to exec the sci file and run again.

hope this helps.

rgds,
CL

On 14/3/2019 10:27 PM, P M wrote:
Hi,

From an image I want to extract the pixel values along a profile.

The profile coordinates are set automatically, so that I do not have to click in the image.

How do I get the pixel values for that profile?

In IPCV()  I find the function:   improfile() which would do the very thing I want.

But this function waits for mouse clicks.

Is there somehow a way to give this function a fake mouse click?

Thanks,
Philipp

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


-- 
Tan Chin Luh
Trity Technologies Sdn Bhd
Tel : +603 80637737
HP : +6013 3691728
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

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