[SIP-devel] roi function
Advanced image processing toolbox for Scilab on Unix/Linux/Mac OS
Status: Beta
Brought to you by:
ricardofabbri
|
From: DRUEL J. <joc...@li...> - 2003-09-19 20:25:02
|
Hi,
I worked a bit on a region of interest function.
Currently, it's working for a rectangular selection on grayscale images.
Just do:
-> mask=imroi(image);
On color images, the display is allright but the mask created is not useable
immediately:
image.*mask gives an error because of dimensions.
My problem is:
-> image=imread('ararauna.jpg');
-> a=zeros(image);
size(a) and size(image) are coherent.
But if I do:
-> a(10:15,20:34,1:3)=1;//mask creation
then size(a) and size(image) are not coherent anymore and
-> image.*a
is not working, unfortunately.
I've not written an help file by now, because I'd like to fix this problem
first.
Best regards
Jocelyn
--
Powered by Linux
|