diff --git a/ChangeLog.txt b/ChangeLog.txt index 08032ab..17b9c61 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -75,4 +75,7 @@ Version 4.1.2.2 (24-Jul-20): Version 4.5 (21-Nov-23): 1. Change OpenCV Dependency to 4.5 -2. base64toimg, imgtobase64 (20-Sep-2022) - experimental, requite USB E for image exchange \ No newline at end of file +2. base64toimg, imgtobase64 (20-Sep-2022) - experimental, requite USB E for image exchange + +Version 4.5.0.1 (24-Feb-25) +1. backport master branch fixes diff --git a/README.MD b/README.MD index 3fa909e..c92ec0e 100644 --- a/README.MD +++ b/README.MD @@ -1,4 +1,7 @@ -# Image Processing and Computer Vision Toolbox (IPCV) - Version 4.5 (21-Nov-23) +# Image Processing and Computer Vision Toolbox (IPCV) - Version 4.5.0.1 (24-Feb-25) + +Version 4.5.0.1 (24-Feb-25) +1. backport master branch fixes Version 4.5 (21-Nov-23): 1. Change OpenCV Dependency to 4.5 @@ -75,4 +78,4 @@ New functions: Version 1.1 (6-Apr-17): Add features and tests, improved start file -Version 1.0 (17-Mar-17): Initial Release \ No newline at end of file +Version 1.0 (17-Mar-17): Initial Release diff --git a/README.txt b/README.txt deleted file mode 100644 index 0df455e..0000000 --- a/README.txt +++ /dev/null @@ -1,23 +0,0 @@ -Versionn 4.1 - -atomsInstall('IPCV'); - -Version 2.1 - -Skipped Released merge in 4.1 - - -Version 1.2 - 2.0 - -For Windows : atomsInstall('IPCV') in Scilab 6 should get the installation done. - -For Linux (tested on Scilab 6.0 binary version), after atomsInstall('IPCV'), you need to do the following steps: - -1. You need to delete (to be safe, move to another location) the libgomp* under scilab6folder/lib/thirdparty/redist. - -2. You need to install opencv for your linux distribution, for e.g. under ubuntu: -sudo apt-get install libopencv-dev - -3. The module is compiled with Ubuntu 16.04 (with the default gcc). If you run into error during startup, run the builder.sce under IPCV folder and restart Scilab 6. - -Enjoy! please let me know whether you make it works or go into error by sending the feedback at http://scilabipcv.tritytech.com/feedback-on-installation/ diff --git a/VERSION b/VERSION index a84947d..1eaf64b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.5.0 +4.5.0.1 diff --git a/builder.sce b/builder.sce index 5cc0fd7..d0c9ffe 100644 --- a/builder.sce +++ b/builder.sce @@ -44,9 +44,7 @@ function main_builder(); /////////// tbx_builder_gateway(toolbox_dir); tbx_builder_help(toolbox_dir); - //tbx_build_loader(TOOLBOX_NAME, toolbox_dir); tbx_build_loader(toolbox_dir); - //tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir); tbx_build_cleaner(toolbox_dir); endfunction // ============================================================================= diff --git a/demos/demo_transform.sci b/demos/demo_transform.sci index e8bc637..d302e9e 100644 --- a/demos/demo_transform.sci +++ b/demos/demo_transform.sci @@ -15,9 +15,9 @@ function demo_transform() scf() subplot(221); imshow(S); title("Original Image"); - subplot(222); imshow(y1,jetcolormap(512)); title("DCT"); - subplot(223); imshow(y2,jetcolormap(512)); title("FFT"); - subplot(224); imshow(fftshift(y2),jetcolormap(512)); title("FFT Shifted"); + subplot(222); imshow(y1,jet(512)); title("DCT"); + subplot(223); imshow(y2,jet(512)); title("FFT"); + subplot(224); imshow(fftshift(y2),jet(512)); title("FFT Shifted"); scf() //subplot(221); imshow(S); title("Original Image"); diff --git a/etc/IPCV.start b/etc/IPCV.start index 4dc0cbb..09d85e3 100644 --- a/etc/IPCV.start +++ b/etc/IPCV.start @@ -1,6 +1,7 @@ //============================================================================= // IPCV - Scilab Image Processing and Computer Vision toolbox // Copyright (C) 2017 Tan Chin Luh +// Copyright (C) 2023-2025 - UTC - Stéphane Mottelet //============================================================================= // function ipcvlib = startModule() @@ -12,20 +13,16 @@ function ipcvlib = startModule() etc_tlbx = getshortpathname(etc_tlbx); root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") ); - mprintf("Start %s %s\n",TOOLBOX_NAME,mgetl(fullfile(root_tlbx,"VERSION"))); - mprintf(TOOLBOX_TITLE + "\n"); - mprintf("2023 - Scilab Academy\n"); - //mprintf("Find more information at https://ipcv.scilab-academy.com \n"); + mprintf("Start %s %s: ",TOOLBOX_NAME,mgetl(fullfile(root_tlbx,"VERSION"))); if isdef("ipcvlib") then warning(TOOLBOX_NAME + " library is already loaded"); return; end - //Load functions library // ============================================================================= - mprintf("\tLoad macros\n"); + mprintf("load macros"); pathmacros = pathconvert( root_tlbx ) + "macros" + filesep(); ipcvlib = lib(pathmacros); @@ -35,23 +32,13 @@ function ipcvlib = startModule() // load dependencies // ============================================================================= // load dependencies on OpenCV - mprintf("\tLoad dependencies\n"); + mprintf(", dependencies"); OPENCV_LIBS = ['opencv_world']; - //TORCH_LIBS = ['']; - OPENCV_VERSION = "4.5.0" bDepsLoaded = %t; bNonfLoaded = %t; - if getos() == 'Windows' then // Windows - - OPENCV_LIBS = OPENCV_LIBS + "450" ; - exec(etc_tlbx+'IPCV_windows.sci'); - IPCV_windows(root_tlbx,OPENCV_LIBS); - //exec(etc_tlbx+'IPCV_windows_torch.sci'); - //IPCV_windows_torch(root_tlbx,TORCH_LIBS); - - else // Darwin, Linux + if getos() <> 'Windows' then // Darwin, Linux exec(etc_tlbx+'IPCV_unix.sci'); IPCV_unix(root_tlbx,OPENCV_LIBS); @@ -60,7 +47,7 @@ function ipcvlib = startModule() // load gateways // ============================================================================= - mprintf("\tLoad gateways\n"); + mprintf(", gateways"); exec(pathconvert(root_tlbx + "/sci_gateway/loader_gateway.sce", %f)); @@ -69,7 +56,7 @@ function ipcvlib = startModule() // Load and add help chapter // ============================================================================= if or(getscilabmode() == ["NW";"STD"]) then - mprintf("\tLoad help\n"); + mprintf(", help"); path_addchapter = pathconvert(root_tlbx+"/jar"); if ( isdir(path_addchapter) <> [] ) then add_help_chapter(TOOLBOX_TITLE, path_addchapter, %F); @@ -79,7 +66,7 @@ function ipcvlib = startModule() // Load demos // ============================================================================= if or(getscilabmode() == ["NW";"STD"]) then - mprintf("\tLoad demos\n"); + mprintf(", demos."); pathdemos = pathconvert(root_tlbx+"/demos/ipcv.dem.gateway.sce",%F,%T); add_demo("IPCV",pathdemos); end @@ -97,5 +84,4 @@ else clear startModule; // remove startModule on stack end -// ============================================================================= - +// ============================================================================= \ No newline at end of file diff --git a/etc/IPCV_unix.sci b/etc/IPCV_unix.sci index 141b104..ae2feda 100644 --- a/etc/IPCV_unix.sci +++ b/etc/IPCV_unix.sci @@ -5,7 +5,7 @@ function IPCV_unix(root_tlbx,OPENCV_LIBS) // image_codec_libs = ["png12"; "jpeg"]; // video_codec_libs = ["gstbase-0.10";"openh264";"gstreamer-0.10";"gstvideo-0.10";"gstapp-0.10";... // "gstriff-0.10";"gstpbutils-0.10";"QtOpenGL";"QtTest";"gstinterfaces-0.10";"gstaudio-0.10";"gsttag-0.10"]; - ffmpeg_libs = ["avutil"; "swscale"; "avcodec"; "avformat"; "avfilter"; "avdevice"]; + ffmpeg_libs = ["avutil"; "swscale"; "swresample"; "avcodec"; "avformat"; "avfilter"; "avdevice"]; OPENCV_LIBS = "lib"+[ffmpeg_libs; OPENCV_LIBS]; ARCH = unix_g("uname -m"); @@ -30,7 +30,7 @@ function IPCV_unix(root_tlbx,OPENCV_LIBS) cd(pp); if bDepsLoaded == %t then - disp("Pre-Compiled OpenCV lib used"); + printf(" (packaged OpenCV lib used)"); break; end @@ -49,7 +49,7 @@ function IPCV_unix(root_tlbx,OPENCV_LIBS) end if bDepsLoaded == %t then - disp("System OpenCV lib used"); + printf(" (system OpenCV lib used)"); break; end @@ -71,7 +71,7 @@ function IPCV_unix(root_tlbx,OPENCV_LIBS) end if bDepsLoaded == %t then - disp("Mixed OpenCV lib used"); + printf(" (mixed OpenCV lib used)"); break; end @@ -97,7 +97,4 @@ function IPCV_unix(root_tlbx,OPENCV_LIBS) return; end - - - -endfunction +endfunction \ No newline at end of file diff --git a/help/en_US/Image Reading, Display and Exploration/imread.xml b/help/en_US/Image Reading, Display and Exploration/imread.xml index b4a6acf..424b555 100644 --- a/help/en_US/Image Reading, Display and Exploration/imread.xml +++ b/help/en_US/Image Reading, Display and Exploration/imread.xml @@ -36,7 +36,7 @@ filename,url : - A string, the image filename or a valid URL to be read. For the case of URL, the full syntax must be used. For example, "http://www.tritytech.com/images/phocagallery/roll8_ScilabIOT.png". + A string, the image filename or a valid URL to be read. For the case of URL, the full syntax must be used. For example, "https://gitlab.com/uploads/-/system/project/avatar/3330423/puffin.png". modes : @@ -61,6 +61,48 @@ im = imread(filename) reads image in filename into im matrix. If filename contains a truecolor image, im is a MxNx3 hypermatrix, so for example im(:,:,1) stands for the red channel. For gray images, im is a MxNx1 unsigned char matrix. +The imread mode can be controlled by setting any of these optional arguments to 1: + + +IMREAD_UNCHANGED (return the loaded image as is (with alpha channel, otherwise it gets cropped). Ignore EXIF orientation) + + +IMREAD_GRAYSCALE (convert image to the single channel grayscale image) + + +IMREAD_COLOR (convert image to the 3 channel color image) + + +IMREAD_ANYDEPTH (return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit) + + +IMREAD_ANYCOLOR (the image is read in any possible color format) + + +IMREAD_LOAD_GDAL (use the gdal driver for loading the image) + + +IMREAD_REDUCED_GRAYSCALE_2 (convert image to the single channel grayscale image and the image size reduced 1/2) + + +IMREAD_REDUCED_COLOR_2 (convert image to the 3 channelcolor image and the image size reduced 1/2) + + +IMREAD_REDUCED_GRAYSCALE_4 (convert image to the single channel grayscale image and the image size reduced 1/4) + + +IMREAD_REDUCED_COLOR_4 (convert image to the 3 channelcolor image and the image size reduced 1/4) + + +IMREAD_REDUCED_GRAYSCALE_8 (convert image to the single channel grayscale image and the image size reduced 1/8) + + +IMREAD_REDUCED_COLOR_8 (convert image to the 3 channelcolor image and the image size reduced 1/8) + + +IMREAD_IGNORE_ORIENTATION (do not rotate the image according to EXIF's orientation flag) + + @@ -70,6 +112,8 @@ reads image in filename into im matrix. If filename contains a truecolor image, im = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png')); imshow(im); +im = imread(fullpath(getIPCVpath() + "/images/" + 'puffin.png'),IMREAD_UNCHANGED=1); +imshow(im); ]]> @@ -88,4 +132,4 @@ imshow(im); Tan Chin Luh - + \ No newline at end of file diff --git a/help/en_US/Image Transforms/imdct.xml b/help/en_US/Image Transforms/imdct.xml index e31e7c9..2d6d925 100644 --- a/help/en_US/Image Transforms/imdct.xml +++ b/help/en_US/Image Transforms/imdct.xml @@ -57,7 +57,7 @@ Performs a forward discrete Cosine transform of 1D or 2D array. diff --git a/help/en_US/Image Transforms/imhough.xml b/help/en_US/Image Transforms/imhough.xml index 871eade..b6f1c15 100644 --- a/help/en_US/Image Transforms/imhough.xml +++ b/help/en_US/Image Transforms/imhough.xml @@ -66,7 +66,7 @@ Applies Hough transformation to an image. S = imread(fullpath(getIPCVpath() + "/images/2lines.png")); [HM, rho, th] = imhough(S); scf();Sgrayplot(th,rho,HM',strf="021"); -xset("colormap",hotcolormap(64)) +xset("colormap",hot(64)) ]]> diff --git a/help/en_US/Image Transforms/imidct.xml b/help/en_US/Image Transforms/imidct.xml index 2b2badd..524b88e 100644 --- a/help/en_US/Image Transforms/imidct.xml +++ b/help/en_US/Image Transforms/imidct.xml @@ -59,7 +59,7 @@ S = imread(fullpath(getIPCVpath() + "/images/measure_gray.jpg")); y = imdct(S); y2 = zeros(y); y2(1:100,1:100) = y(1:100,1:100); -imshow(y2,jetcolormap(256)); +imshow(y2,jet(256)); S2 = imidct(y2); imshow(S2./255); diff --git a/help/en_US/Image Transforms/imradon.xml b/help/en_US/Image Transforms/imradon.xml index 537aa6c..80214e8 100644 --- a/help/en_US/Image Transforms/imradon.xml +++ b/help/en_US/Image Transforms/imradon.xml @@ -69,7 +69,7 @@ If THETA is not defined, then 0:179 is assumed. I = zeros(100,100); I(25:75, 25:75) = 1; [RT,xp] = imradon(I); -imshow(RT,hotcolormap(64)); +imshow(RT,hot(64)); ]]> diff --git a/help/en_US/Image Transforms/imwatershed.xml b/help/en_US/Image Transforms/imwatershed.xml index a790302..ee4f110 100644 --- a/help/en_US/Image Transforms/imwatershed.xml +++ b/help/en_US/Image Transforms/imwatershed.xml @@ -67,7 +67,7 @@ dist = Sd > 0.4; [markers,n] = imlabel(dist); markers(1:5,1:5) = 255; Sw = imwatershed(S, markers); -imshow(Sw,hsvcolormap(3)); +imshow(Sw,hsv(3)); ]]> diff --git a/help/en_US/Morphological Operations/imblobprop.xml b/help/en_US/Morphological Operations/imblobprop.xml index 23ad1a3..2fd4985 100644 --- a/help/en_US/Morphological Operations/imblobprop.xml +++ b/help/en_US/Morphological Operations/imblobprop.xml @@ -68,7 +68,7 @@ A_edge = edge(A,'canny'); se = imcreatese('ellipse',15,15); A_dilate = imdilate(A_edge,se); [A_labeled,n] = imlabel(A_dilate); -imshow(A_labeled,jetcolormap(n)); +imshow(A_labeled,jet(n)); [Area, BB, ctr] = imblobprop(A_labeled); imrects(BB,[255,0,0]); diff --git a/help/en_US/Morphological Operations/imlabel.xml b/help/en_US/Morphological Operations/imlabel.xml index a651903..88a89ab 100644 --- a/help/en_US/Morphological Operations/imlabel.xml +++ b/help/en_US/Morphological Operations/imlabel.xml @@ -64,7 +64,7 @@ A_edge = edge(A,'canny'); se = imcreatese('ellipse',15,15); A_dilate = imdilate(A_edge,se); [A_labeled,n] = imlabel(A_dilate); -imshow(A_labeled,jetcolormap(n)); +imshow(A_labeled,jet(n)); ]]> diff --git a/help/en_US/Structural Analysis and Shape Descriptors/imcontour2label.xml b/help/en_US/Structural Analysis and Shape Descriptors/imcontour2label.xml index 1171011..d8c91ce 100644 --- a/help/en_US/Structural Analysis and Shape Descriptors/imcontour2label.xml +++ b/help/en_US/Structural Analysis and Shape Descriptors/imcontour2label.xml @@ -63,7 +63,7 @@ S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg")); Sbw = im2bw(S,0.5); Sc = imfindContours(Sbw); So = imcontour2label(S,Sc); -imshow(So,rainbowcolormap(size(Sc))); +imshow(So,rainbow(size(Sc))); ]]> diff --git a/help/en_US/master_help.xml b/help/en_US/master_help.xml deleted file mode 100644 index aefb3b1..0000000 --- a/help/en_US/master_help.xml +++ /dev/null @@ -1,432 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]> - - - IPCV - - - -Analytic Geometry -&a5ec5f26842c24eaaa6a5fe6ac435e525; - - -Camera Handling -&afba664b40507ec88995fcb5a36c4466c; -&afc1ef4b4a09a0a953ddaabc398583855; -&aaa3838840c59cf62d403bfdabcc84ca0; -&a9e461e9600f109350f24ab2b08bcda4b; -&a7acb06f7a1d80d229db1d4de11c661ca; - - -Deep Learning -&afea8571e15100e01fcbbd9e868b27916; -&a359ce239f4779c22bdd56de391577fcb; -&a76bc5abfa1100c0758e79cdb553edf06; -&aef96a7921e4e2d4facf11a11ed418842; -&a9a5765ca6562eb55d20ed493a3d39636; -&ac7cd8b595468ae8164bb9caf3151b581; -&a663e383daeb547d6b15a32a1f9775838; -&a527733e376d84cd81b1c30aeb8a1f896; -&ad0dcc437a51ba75ed5238a226de6b4ce; -&a5a29266b923d02bcd7134b0c5e78ac31; - - -Feature Detection, Description and Matching -&a758db6ba755704ae20593473d280d859; -&a696acc71a1fc621d2a49d08bd6175235; -&a8ae83ec6adad6a4dddbea0b9543eb1b6; -&afdcbf1e60b12fef1e43e6ce9eec84758; -&a8fca7e0c2fe351ec524fe8de8178a2fb; -&a2ec5a3ff93334a6cd99ba0bb24f36c96; -&ab8e441061ce4b0935aab42ab599ff8f0; -&a946afb7e92d95358f174c7c20ed9a929; -&a1968bbeac343d30222b33dac8712e0f0; -&a1a7f8a29ce06e09c067ad1f2b84a8218; -&a1493184453cd566accd86aa1dec7e984; -&aee632c0e8f8797d51dca6bb5a4552f59; -&ae84d7749513e2f1bf4b09d307a10b211; -&acee1abdeeae9cfb6553fff1ccc51b6c1; -&a09c3f2e128c0cfd71ea115b2849375fb; -&af43d9142010dd80a40cdc1bebdee87b8; - - -Filter Design and Visualization -&a7501e897795e507574faf5850f11b2b1; -&a085cb4cb45e08b4ac4472266c0d2982a; -&a54e972a3a0946af74de96feb8560f4bd; -&ad5ee0617b86fa68820934f4750da8820; -&ad219b9ba645c28285a23fe040d30b4a8; - - -Image Analysis and Statistics -&a697912da195462f683b624ea4bbca146; -&a7de05197e977fdf08be67b8a146d449d; -&a7f8bcb785f89f22ac313b40c1bfde3da; -&a94ecb7d114a032f6afd7a3dd5941ba28; -&ac6e54dc78305425b56c7e373883ab1b2; -&a7a527c87664d29384a22bb70ff150653; -&a9ed53fa16d7ab310f8814b95cb8109c1; -&a47d2720ff0a3a60972d5d80a90f92f2f; - - -Image Arithmetic -&a046ba6839c2e9aa7ebd15981d91285fd; -&a83694d6ca72c228dd941053469be1ecc; -&a673b332422526bd687d02a0023e70cca; -&ad3b9b2d1158f29f7f9347b7154c88b98; -&a7acb3a010d8de8363a8f2f82394e7a00; -&a52c6f30c0730253870748667b5359c43; -&a433a4f57a5ef4f2890449083cb007b79; - - -Image Block Processing -&aa7cdbe374a493bf00a80c15b08661f50; -&aec83437263cf85c795a9b47caaafd613; -&a47ac4e075e23c8e8d3f12d56c2f322c1; -&aa95253634def58e558844bbd56f41da4; - - -Image Enhancement and Restoration -&a0ee6d1ac026fada21ec5efc28ae19352; -&a972d5fa98d47ef9b01d6d4c986d6c9bd; -&ac73e9809f627f0328d0b8367e5fd29b8; -&a5c08a305cebd28d8d27e04387ea57b63; -&aa6ddfd5e2d82e58361adc9fd5fa1b2eb; -&a47bb35984077294681b4ee2a6665c8a1; -&aaad4b269699de4f919378940ff864d57; -&ab26aafa00db166a9c3bdb416a3c91d62; -&ab186705ebd7715b19c5a1cd639199e4a; -&a24e2ef8a77319d182e462829bc88c975; - - -Image Linear Filtering -&a9115b1f970d60da171bcc4c8f37fa5e0; -&aa4040498ed61099b52dccf461642cbbf; -&ababa41be68b09f2a2c22f18a5feccded; - - -Image Reading, Display and Exploration -&a486986fdb3d966a54b0e10b03ea088d0; -&a9dd79aa08de50236653e789b4252bc34; -&a7fdf1961b361299f879d98717b16d95e; -&ad6cfbe8883df453df3c613a5e3f449f0; -&adf1cba81cd403515a679119a3ef369a6; -&a065b021afcbae477ff07aef1295dddb7; -&accf9eefe2990b2d68077304bca92743b; -&ad43a525715ff8f10590de45b19ff8172; -&a0f12ba97364f494a90119b48d34a861f; - - -Image Registration and Image Fusion -&a6dc9a9325ca1c2ad147d9f72c5abcf37; -&a091f11b75e1b00ce8edd29407b8752b8; -&a0b8290d40bef7ce6c467df3767c59830; -&a0a947d35a1595450ee636b45da2e45d7; -&a59ff0d922c694d927959b882fa147c27; - - -Image Stitching -&a508b45257561c8588e0fb9b7ffe6b7a3; -&a7d957ad3c3e97506858e00c7022d96a0; - - -Image Transforms -&a091a507eea7d547f5a16fcac5bf17927; -&a338fa812cf6cdf579e013ab15da58ed7; -&a65992bd92962348d270557c980371185; -&a6726f09cf5d992fcd622409bdb374518; -&ae8a9ed83b718575e0e4a8da1cf9598e2; -&a6a2da19e8d68a6d8882c37d1dc9d586f; -&aa4d5464e06c7d0159a34d67ba15b78b6; -&af3fdbe72de11cd7fe111a1e0656c26a8; - - -Image Types and Color Space Conversions -&a1c289b2e128f994f453a06f1d3ed6c49; -&ac7ea8003d13418f17e6799f62f77575c; -&a3c67cdccf93985a5e1a300e6a8e9cf27; -&aa7db67d2b49ee0446a60a9868f3fcbe0; -&a84a5c91236462867a1c914211faabcd7; -&a3ee72d72195261351c87622f87a66332; -&ada96b1cf8d8ee3ced11a8de03e9e3d44; -&a4343ad5f9059ed8ad91562982a681ab4; -&af12ca6aa9605560b13225a25b1d0530b; -&a7c0d0b286991640bd83bf5309f4b069e; -&a34b129026382d379b611649214efb413; -&a9272857fbef66dc6ecf77ec2d6ed2887; -&a5066a4f59041479c69fec403a3543519; -&a519fef7c19f1b2d11b7e1b212dbe9107; -&a68b2f3b341f76908f3adfcca53581d6d; -&a7cf52dab8b77db7369ba70eba2a88a13; -&a6a7df693d0c93818f031591bd8d77565; -&a6053bb02254ebd7a9a8119ecc3b1f85b; -&aafebeebc9c45e0d9d5449375105f537e; -&afe2b194fb9c38f864a66a19944afbe48; -&ac616a1bad4439cabaaf4a15771c5feb0; -&a0570b4993de78b4da329e0d342365feb; - - -Morphological Operations -&ab7b0439f3a5fef9e94693a6f580b7931; -&a271334ba052425ffd37d593e06935bc2; -&ae50043993f07f20f5d53dd2f3ba92038; -&aea4b06082dcde77effd949a45d826913; -&a723e15f1b3f5db821a83516edcfbd67f; -&a37c748e6f8e8b772367be96f06c84a20; -&a4253f2ece326878b440820ebeca2b526; -&a4a5f4e9c475e2fa771fdbee3162b51cf; -&ad8bb53448799457c7f98dc95f7d449a1; -&aae70905a67536f4b1696af50f5f200bc; -&a9e4cccfa1ecfe99fdf90fbc735577626; -&a8def4694d516e34b6ee1c5362dd95254; -&a8b5810c5388274c2fab59083ebe29caf; - - -Object Detection -&a5799f3b72c1d34399a0b22c8ffe92371; - - -Object Tracking -&a9fb135aa3810bc42830b1f79de18de1e; -&a640c99e2a775bf7273751bbf2d0a67cc; -&a2281e865726c78a0f9c340a934e011c5; - - -ROI Processing -&a1a62dab387eab791227f851899594242; -&ac803664126fbe0f1ddbcf4a8ee44b53a; - - -Spatial Transformations -&a156ed8cec016a161d008374529949cb8; -&acd2946dda1a75f415a4cb751fb5c638b; -&a4b69518cc385d786e90131cdbefcdc38; -&a0fec9305766082772e978d8764707961; -&a33b4039dd94d51e26f9d892699c1429d; - - -Structural Analysis and Shape Descriptors -&a5d3fa301206a1de49a4c7a9cd08446d5; -&a755614ba9f6201e046dfcdaef279f2b7; -&a2e726c56ffdd6495e4bf62fb8eb688cb; -&a3dbc845d664216748e866b12683d18a9; -&a63c2a9a067ad90d5a6cac37eb1d6fa16; -&a17e9ac00a6e4b4503bfb2fc573aed88f; - - -Super Resolution -&a92e81cd00ca183dcfca60210427426bb; -&a96c8cfdb113146af3fb3a61297bf2054; - - -Utilities and Interactive Tools -&ad3b13dfbf1f161cd9340626449ca1462; -&ac11b6f6c6d452a2040422522a812c0d9; -&a0050457a092a04e455548b3458ccad49; -&a51b04c4300cbd34da7c8dbd694039463; -&aae20774a6ff3365c7b4dfc02d4e20d60; -&a77744c5b7ddef4b2d6e2099f473bc1dc; -&a9dc4e3a88a1a02978a05bdd3accfeb3c; -&aa7acefcc77fc68e42282ef3cc8cf0389; -&a17ce64dad847d125b578e288ff38f8ae; -&a89b873eeb19bc7c03a20be2f41e63171; -&aeccc407406de5d9c84f8081816f9f8a1; -&a3f3df33231cde308890d97c6ffdab9d7; -&af61cceaec9cfdb9a6ac70f7716ccb811; -&afade9c4bf3546fcab4b651d5fdce48ee; -&a31bd802742adf10e834866a7dfe6edb0; - - -Video Handling -&a35086d25928e3cc34692956b019e4966; -&a513e061eb36d7d83926dd55652b4c27a; -&a40aec8bb3d9cde904eaf6961433bcc95; -&afc2c6a446962bebc5a8dc90a2cf9ee4b; -&a8702e42a3ba0ef20a2ceb68f5c3a5d22; -&adb896d341635ddf21641b4dc558bfb6b; -&a909aac9423b44cec27e9ba95e0180c96; -&a932d448fba86b7f00769134a429190d8; -&a43c6c9ae0843cdbd54cbcefc056f2448; - - diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS deleted file mode 100644 index f04e9c6..0000000 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB deleted file mode 100644 index 33ef662..0000000 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS b/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS deleted file mode 100644 index 3ff78c5..0000000 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS b/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS deleted file mode 100644 index a477482..0000000 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/POSITIONS and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA b/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA deleted file mode 100644 index dc46ad1..0000000 --- a/help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA +++ /dev/null @@ -1,2 +0,0 @@ -JavaSearch 1.0 -TMAP bs=2048 rt=1 fl=-1 id1=2261 id2=1 diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP b/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP deleted file mode 100644 index 001cc96..0000000 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/ScilabCaution.png b/help/en_US/scilab_en_US_help/ScilabCaution.png deleted file mode 100644 index a9e4ff3..0000000 Binary files a/help/en_US/scilab_en_US_help/ScilabCaution.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/ScilabEdit.png b/help/en_US/scilab_en_US_help/ScilabEdit.png deleted file mode 100644 index 188e1c1..0000000 Binary files a/help/en_US/scilab_en_US_help/ScilabEdit.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/ScilabExecute.png b/help/en_US/scilab_en_US_help/ScilabExecute.png deleted file mode 100644 index a7de0fe..0000000 Binary files a/help/en_US/scilab_en_US_help/ScilabExecute.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/ScilabImportant.png b/help/en_US/scilab_en_US_help/ScilabImportant.png deleted file mode 100644 index 81e9ed2..0000000 Binary files a/help/en_US/scilab_en_US_help/ScilabImportant.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/ScilabNote.png b/help/en_US/scilab_en_US_help/ScilabNote.png deleted file mode 100644 index 8851b99..0000000 Binary files a/help/en_US/scilab_en_US_help/ScilabNote.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/ScilabTip.png b/help/en_US/scilab_en_US_help/ScilabTip.png deleted file mode 100644 index 8851b99..0000000 Binary files a/help/en_US/scilab_en_US_help/ScilabTip.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/ScilabWarning.png b/help/en_US/scilab_en_US_help/ScilabWarning.png deleted file mode 100644 index a9e4ff3..0000000 Binary files a/help/en_US/scilab_en_US_help/ScilabWarning.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvl2.xml_1.png b/help/en_US/scilab_en_US_help/_LaTeX_imdeconvl2.xml_1.png deleted file mode 100644 index 0792a6f..0000000 Binary files a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvl2.xml_1.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvl2.xml_2.png b/help/en_US/scilab_en_US_help/_LaTeX_imdeconvl2.xml_2.png deleted file mode 100644 index aceadb5..0000000 Binary files a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvl2.xml_2.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvl2.xml_3.png b/help/en_US/scilab_en_US_help/_LaTeX_imdeconvl2.xml_3.png deleted file mode 100644 index c3b062a..0000000 Binary files a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvl2.xml_3.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvsobolev.xml_1.png b/help/en_US/scilab_en_US_help/_LaTeX_imdeconvsobolev.xml_1.png deleted file mode 100644 index 767b85f..0000000 Binary files a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvsobolev.xml_1.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvsobolev.xml_2.png b/help/en_US/scilab_en_US_help/_LaTeX_imdeconvsobolev.xml_2.png deleted file mode 100644 index f0d675e..0000000 Binary files a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvsobolev.xml_2.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvwiener.xml_1.png b/help/en_US/scilab_en_US_help/_LaTeX_imdeconvwiener.xml_1.png deleted file mode 100644 index 6f71d01..0000000 Binary files a/help/en_US/scilab_en_US_help/_LaTeX_imdeconvwiener.xml_1.png and /dev/null differ diff --git a/help/en_US/scilab_en_US_help/addframe.html b/help/en_US/scilab_en_US_help/addframe.html deleted file mode 100644 index 1c3d2ba..0000000 --- a/help/en_US/scilab_en_US_help/addframe.html +++ /dev/null @@ -1,97 +0,0 @@ - - - addframe - - - -
- - - - -
- << Video Handling - - - Video Handling - - - aviaddframe >> - -
-
-
- - - - IPCV >> Video Handling > addframe - -

-

addframe

-

Add a frame to the video file. (Depreciated. Replaced by aviaddframe.)

- - -

Syntax

-
n = addframe(n, im)
- -

Parameters

-
n : -

The opened video file index, the return value of avifile .

-
im : -

The input image which must be UINT8 RGB image. If the image size is not the same with the argument dims of function avifile , the image will be resized to dims .

- -

Description

-

addframe add a frame to video file n.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
-n = avifile('baboon.avi', [300;300], 30,'xvid');
-for ii=1:200
-ims = im(ii:512-ii, ii:512-ii, :);
-addframe(n, ims);
-end
-
-aviclose(n);
- -

See also

-
  • avifile — Create a new video file to write.
  • -
  • aviopen — Open a video file.
  • -
  • aviaddframe — Add a frame to the video file.
  • -
  • aviclose — Close a video file.
  • -
  • avicloseall — Close all opened video files/cameras.
  • -
  • avilistopened — Show all opened video files.
  • -
  • avireadframe — Grabs and returns a frame from a opened video file or camera.
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << Video Handling - - - Video Handling - - - aviaddframe >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/aviaddframe.html b/help/en_US/scilab_en_US_help/aviaddframe.html deleted file mode 100644 index 69c318e..0000000 --- a/help/en_US/scilab_en_US_help/aviaddframe.html +++ /dev/null @@ -1,97 +0,0 @@ - - - aviaddframe - - - -
- - - - -
- << addframe - - - Video Handling - - - aviclose >> - -
-
-
- - - - IPCV >> Video Handling > aviaddframe - -

-

aviaddframe

-

Add a frame to the video file.

- - -

Syntax

-
n = aviaddframe(n, im)
- -

Parameters

-
n : -

The opened video file index, the return value of avifile .

-
im : -

The input image which must be UINT8 RGB image. If the image size is not the same with the argument dims of function avifile , the image will be resized to dims .

- -

Description

-

addframe add a frame to video file n.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
-n = avifile('baboon.avi', [300;300], 30,'xvid');
-for ii=1:200
-ims = im(ii:512-ii, ii:512-ii, :);
-aviaddframe(n, ims);
-end
-
-aviclose(n);
- -

See also

-
  • avifile — Create a new video file to write.
  • -
  • aviopen — Open a video file.
  • -
  • aviaddframe — Add a frame to the video file.
  • -
  • aviclose — Close a video file.
  • -
  • avicloseall — Close all opened video files/cameras.
  • -
  • avilistopened — Show all opened video files.
  • -
  • avireadframe — Grabs and returns a frame from a opened video file or camera.
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << addframe - - - Video Handling - - - aviclose >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/aviclose.html b/help/en_US/scilab_en_US_help/aviclose.html deleted file mode 100644 index 812e742..0000000 --- a/help/en_US/scilab_en_US_help/aviclose.html +++ /dev/null @@ -1,91 +0,0 @@ - - - aviclose - - - -
- - - - -
- << aviaddframe - - - Video Handling - - - avicloseall >> - -
-
-
- - - - IPCV >> Video Handling > aviclose - -

-

aviclose

-

Close a video file.

- - -

Syntax

-
aviclose(n)
- -

Parameters

-
n : -

The opened file/camera index.

- -

Description

-

aviclose close an opened video file or camera.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = aviopen(fullpath(getIPCVpath() + "/images/video.avi"));
-im = avireadframe(n); //get a frame
-imshow(im);
-aviclose(n);
- -

See also

-
  • avifile — Create a new video file to write.
  • -
  • aviopen — Open a video file.
  • -
  • aviaddframe — Add a frame to the video file.
  • -
  • aviclose — Close a video file.
  • -
  • avicloseall — Close all opened video files/cameras.
  • -
  • avilistopened — Show all opened video files.
  • -
  • avireadframe — Grabs and returns a frame from a opened video file or camera.
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << aviaddframe - - - Video Handling - - - avicloseall >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/avicloseall.html b/help/en_US/scilab_en_US_help/avicloseall.html deleted file mode 100644 index 3244ca3..0000000 --- a/help/en_US/scilab_en_US_help/avicloseall.html +++ /dev/null @@ -1,87 +0,0 @@ - - - avicloseall - - - -
- - - - -
- << aviclose - - - Video Handling - - - avifile >> - -
-
-
- - - - IPCV >> Video Handling > avicloseall - -

-

avicloseall

-

Close all opened video files/cameras.

- - -

Syntax

-
avicloseall()
- -

Description

-

avicloseall close all opened video files or cameras.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = aviopen(fullpath(getIPCVpath() + "/images/video.avi"));
-im = avireadframe(n); //get a frame
-imshow(im);
-avicloseall;
- -

See also

-
  • avifile — Create a new video file to write.
  • -
  • aviopen — Open a video file.
  • -
  • aviaddframe — Add a frame to the video file.
  • -
  • aviclose — Close a video file.
  • -
  • avicloseall — Close all opened video files/cameras.
  • -
  • avilistopened — Show all opened video files.
  • -
  • avireadframe — Grabs and returns a frame from a opened video file or camera.
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << aviclose - - - Video Handling - - - avifile >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/avifile.html b/help/en_US/scilab_en_US_help/avifile.html deleted file mode 100644 index 1b73d7b..0000000 --- a/help/en_US/scilab_en_US_help/avifile.html +++ /dev/null @@ -1,114 +0,0 @@ - - - avifile - - - -
- - - - -
- << avicloseall - - - Video Handling - - - aviinfo >> - -
-
-
- - - - IPCV >> Video Handling > avifile - -

-

avifile

-

Create a new video file to write.

- - -

Syntax

-
n = avifile(filename, dims)
-n = avifile(filename, dims, fps)
-n = avifile(filename, dims, fps, fourcc)
- -

Parameters

-
filename : -

A string, the video filename to be created.

-
dims : -

A 1x2 vector, which indicates the frame size (width, height).

-
fps : -

Frame per second.

-
fourcc : -

4-character code of codec used to compress the frames.

-
For e.g.: -

'xvid', 'mjpg', 'pim1', 'mp42', 'divx','flv1', etc.

-
Under windows: -

-
n : -

A number, the opened video file index.

- -

Description

-

-

In order to use certain codec, the codec must be installed.

-

For e.g., xvid required xvid codec (http://www.xvid.org) while the mpg required ffdshow codec. (http://www.free-codecs.com/ffdshow_download.htm) -avifile create a new video file.

-

After the video file is created, addframe can be used to add frame to the file. Remember to close the opened file using aviclose(n) or avicloseall().

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
-n = avifile('baboon.avi', [300;300], 30,'xvid');
-
-for ii=1:200
-ims = im(ii:512-ii, ii:512-ii, :);
-aviaddframe(n, ims);
-end
-
-aviclose(n);
- -

See also

-
  • avifile — Create a new video file to write.
  • -
  • aviopen — Open a video file.
  • -
  • aviaddframe — Add a frame to the video file.
  • -
  • aviclose — Close a video file.
  • -
  • avicloseall — Close all opened video files/cameras.
  • -
  • avilistopened — Show all opened video files.
  • -
  • avireadframe — Grabs and returns a frame from a opened video file or camera.
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << avicloseall - - - Video Handling - - - aviinfo >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/aviinfo.html b/help/en_US/scilab_en_US_help/aviinfo.html deleted file mode 100644 index bb685fb..0000000 --- a/help/en_US/scilab_en_US_help/aviinfo.html +++ /dev/null @@ -1,95 +0,0 @@ - - - aviinfo - - - -
- - - - -
- << avifile - - - Video Handling - - - avilistopened >> - -
-
-
- - - - IPCV >> Video Handling > aviinfo - -

-

aviinfo

-

Retrieve video file information

- - -

Syntax

-
[frames,width,height,fps]=aviinfo(filename)
- -

Parameters

-
filename : -

Video filename.

-
frames : -

Total number of frames in the video.

-
width : -

Width of the frame.

-
height : -

Height of the frame.

-
fps : -

Frame per second for the video.

- -

Description

-

addframe add a frame to video file n.

-

Retrieve video file information. This function return 4 important information for a video file to be used in other functions.

-

- -

Examples

-
[frames,width,height,fps]=aviinfo(fullpath(getIPCVpath() + "/images/video.avi"));
- -

See also

-
  • avifile — Create a new video file to write.
  • -
  • aviopen — Open a video file.
  • -
  • aviaddframe — Add a frame to the video file.
  • -
  • aviclose — Close a video file.
  • -
  • avicloseall — Close all opened video files/cameras.
  • -
  • avilistopened — Show all opened video files.
  • -
  • avireadframe — Grabs and returns a frame from a opened video file or camera.
- -

Authors

-
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << avifile - - - Video Handling - - - avilistopened >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/avilistopened.html b/help/en_US/scilab_en_US_help/avilistopened.html deleted file mode 100644 index 3b36d77..0000000 --- a/help/en_US/scilab_en_US_help/avilistopened.html +++ /dev/null @@ -1,92 +0,0 @@ - - - avilistopened - - - -
- - - - -
- << aviinfo - - - Video Handling - - - aviopen >> - -
-
-
- - - - IPCV >> Video Handling > avilistopened - -

-

avilistopened

-

Show all opened video files.

- - -

Syntax

-
I=avilistopened()
- -

Parameters

-
I : -

A vector, the opened video file/camera indices.

- -

Description

-

avilistopenedlist all opened files and cameras.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = aviopen(fullpath(getIPCVpath() + "/images/video.avi"));
-im = avireadframe(n); //get a frame
-imshow(im);
-avilistopened()
-aviclose(n);
- -

See also

-
  • avifile — Create a new video file to write.
  • -
  • aviopen — Open a video file.
  • -
  • aviaddframe — Add a frame to the video file.
  • -
  • aviclose — Close a video file.
  • -
  • avicloseall — Close all opened video files/cameras.
  • -
  • avilistopened — Show all opened video files.
  • -
  • avireadframe — Grabs and returns a frame from a opened video file or camera.
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << aviinfo - - - Video Handling - - - aviopen >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/aviopen.html b/help/en_US/scilab_en_US_help/aviopen.html deleted file mode 100644 index 7bf5810..0000000 --- a/help/en_US/scilab_en_US_help/aviopen.html +++ /dev/null @@ -1,95 +0,0 @@ - - - aviopen - - - -
- - - - -
- << avilistopened - - - Video Handling - - - avireadframe >> - -
-
-
- - - - IPCV >> Video Handling > aviopen - -

-

aviopen

-

Open a video file.

- - -

Syntax

-
n = aviopen(filename)
- -

Parameters

-
filename : -

A string, the video filename to be read.

-
n : -

A number, the opened video file index.

- -

Description

-

aviopen open a video file, but it does not read frames from the file.

-

Please use im=avireadframe(n) to get a frame from the n'th opened video file.

-

Remember to close the opened file using aviclose(n) or avicloseall().

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = aviopen(fullpath(getIPCVpath() + "/images/video.avi"));
-im = avireadframe(n); //get a frame
-imshow(im);
-aviclose(n);
- -

See also

-
  • avifile — Create a new video file to write.
  • -
  • aviopen — Open a video file.
  • -
  • aviaddframe — Add a frame to the video file.
  • -
  • aviclose — Close a video file.
  • -
  • avicloseall — Close all opened video files/cameras.
  • -
  • avilistopened — Show all opened video files.
  • -
  • avireadframe — Grabs and returns a frame from a opened video file or camera.
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << avilistopened - - - Video Handling - - - avireadframe >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/avireadframe.html b/help/en_US/scilab_en_US_help/avireadframe.html deleted file mode 100644 index aa23e24..0000000 --- a/help/en_US/scilab_en_US_help/avireadframe.html +++ /dev/null @@ -1,95 +0,0 @@ - - - avireadframe - - - -
- - - - -
- << aviopen - - - Video Handling - - - -
-
-
- - - - IPCV >> Video Handling > avireadframe - -

-

avireadframe

-

Grabs and returns a frame from a opened video file or camera.

- - -

Syntax

-
im = avireadframe(n, fnum)
- -

Parameters

-
n : -

The opened video file/camera index.

-
fnum : -

Frame number, specify which frame to be retrived

-
im : -

The returned frame/image. If no frame, return 0.

- -

Description

-

avireadframe grabs and returns a frame from an opened video file or camera. We could specified which frame to be retrived at the second input argument.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = aviopen(fullpath(getIPCVpath() + "/images/video.avi"));
-im = avireadframe(n,100); //get a frame
-imshow(im);
-
-avilistopened()
-aviclose(n);
- -

See also

-
  • avifile — Create a new video file to write.
  • -
  • aviopen — Open a video file.
  • -
  • aviaddframe — Add a frame to the video file.
  • -
  • aviclose — Close a video file.
  • -
  • avicloseall — Close all opened video files/cameras.
  • -
  • avilistopened — Show all opened video files.
  • -
  • avireadframe — Grabs and returns a frame from a opened video file or camera.
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << aviopen - - - Video Handling - - - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/bwborder.html b/help/en_US/scilab_en_US_help/bwborder.html deleted file mode 100644 index e228933..0000000 --- a/help/en_US/scilab_en_US_help/bwborder.html +++ /dev/null @@ -1,90 +0,0 @@ - - - bwborder - - - - - - - - IPCV >> Morphological Operations > bwborder - -

-

bwborder

-

Find border for an image

- - -

Syntax

-
outm = bwborder(inm, conn)
- -

Parameters

-
inm : -

Source Image (must be in binary)

-
conn : -

4 or 8 neighbourhood

-
outm : -

Output image (in double)

- -

Description

-

Extracts contours from binary images, by detecting which pixel valued 1 has -at least one neighbor valued 0. conn is 4 or 8 dependig if the detection is to -be made in 4 or 8-neighborhood. The final border is 8-connected if -4-neighbors are used, and 4-connected if 8-neighbors are used.

-

- -

Examples

-
inm = imread(fullpath(getIPCVpath() + "/images/big_sq.png"));
-outm = bwborder(im2bw(inm,0.5), 4);
-imshow(outm);
- -

See also

-
  • edge — Find edges in a single channel image.
  • -
  • im2bw — Convert image to binary
- -

Authors

-
  • Tan Chin Luh. Modified from the original work of Ricardo Fabbri
-
- - - - diff --git a/help/en_US/scilab_en_US_help/c_code.css b/help/en_US/scilab_en_US_help/c_code.css deleted file mode 100644 index 948d2ee..0000000 --- a/help/en_US/scilab_en_US_help/c_code.css +++ /dev/null @@ -1,54 +0,0 @@ -.ccomment { - font-style: italic; - color: #b22222 -} - -.cdefault { - font-style: normal; - color: #000000 -} - -.copenclose { - font-style: normal; - color: #000000 -} - -.coperator { - font-style: normal; - color: #000000 -} - -.cstring { - font-style: normal; - color: #a6557a -} - -.ctype { - font-style: normal; - color: #55a655 -} - -.cpreprocessor { - font-style: normal; - color: #9965a6 -} - -.cid { - font-style: normal; - color: #000000 -} - -.ckeyword { - font-style: normal; - color: #ad3ff2 -} - -.cmodifier { - font-style: normal; - color: #ad3ff2 -} - -.cnumber { - font-style: normal; - color: #008b8b -} diff --git a/help/en_US/scilab_en_US_help/camclose.html b/help/en_US/scilab_en_US_help/camclose.html deleted file mode 100644 index 9b517b2..0000000 --- a/help/en_US/scilab_en_US_help/camclose.html +++ /dev/null @@ -1,90 +0,0 @@ - - - camclose - - - -
- - - - -
- << Camera Handling - - - Camera Handling - - - camcloseall >> - -
-
-
- - - - IPCV >> Camera Handling > camclose - -

-

camclose

-

Close a camera

- - -

Syntax

-
camclose(n)
- -

Parameters

-
n : -

The opened camera index.

- -

Description

-

camclose close an opened camera.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = camopen(0);
-sleep(200);
-im = camread(n); //get a frame
-imshow(im);
-camclose(n);
- -

See also

-
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- - - - diff --git a/help/en_US/scilab_en_US_help/camcloseall.html b/help/en_US/scilab_en_US_help/camcloseall.html deleted file mode 100644 index 3be4826..0000000 --- a/help/en_US/scilab_en_US_help/camcloseall.html +++ /dev/null @@ -1,86 +0,0 @@ - - - camcloseall - - - -
- - - - -
- << camclose - - - Camera Handling - - - camlistopened >> - -
-
-
- - - - IPCV >> Camera Handling > camcloseall - -

-

camcloseall

-

Close all opened cameras.

- - -

Syntax

-
camcloseall()
- -

Description

-

camcloseall close all opened cameras.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = camopen(0);
-sleep(200);
-im = camread(n); //get a frame
-imshow(im);
-camcloseall();
- -

See also

-
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << camclose - - - Camera Handling - - - camlistopened >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/camlistopened.html b/help/en_US/scilab_en_US_help/camlistopened.html deleted file mode 100644 index 0ebad10..0000000 --- a/help/en_US/scilab_en_US_help/camlistopened.html +++ /dev/null @@ -1,88 +0,0 @@ - - - camlistopened - - - -
- - - - -
- << camcloseall - - - Camera Handling - - - camopen >> - -
-
-
- - - - IPCV >> Camera Handling > camlistopened - -

-

camlistopened

-

Show all opened camera.

- - -

Syntax

-
I=camlistopened()
- -

Parameters

-
I : -

A vector, the opened video file/camera indices.

- -

Description

-

camlistopened list all opened files and cameras.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = camopen(0);
-camlistopened()
-camcloseall()
- -

See also

-
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << camcloseall - - - Camera Handling - - - camopen >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/camopen.html b/help/en_US/scilab_en_US_help/camopen.html deleted file mode 100644 index 2eb56bd..0000000 --- a/help/en_US/scilab_en_US_help/camopen.html +++ /dev/null @@ -1,95 +0,0 @@ - - - camopen - - - -
- - - - -
- << camlistopened - - - Camera Handling - - - camread >> - -
-
-
- - - - IPCV >> Camera Handling > camopen - -

-

camopen

-

Open a camera.

- - -

Syntax

-
n = camopen(i)
-n = camopen(i,[width, height])
- -

Parameters

-
i : -

The i'th camera.

-
[width, height] : -

Desired camera resolution.

-
n : -

A number, the opened video file/camera index.

- -

Description

-

camopen open a camera, but it does not read frames from the camera. Please use im=camread(n) to get a frame from the n'th opened video file. Remember to close the opened camera using camclose(n) or camcloseall() . -Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = camopen(0);
-sleep(200);
-im = camread(n); //get a frame
-imshow(im);
-camcloseall();
- -

See also

-
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << camlistopened - - - Camera Handling - - - camread >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/camread.html b/help/en_US/scilab_en_US_help/camread.html deleted file mode 100644 index 06fa824..0000000 --- a/help/en_US/scilab_en_US_help/camread.html +++ /dev/null @@ -1,91 +0,0 @@ - - - camread - - - -
- - - - -
- << camopen - - - Camera Handling - - - Deep Learning >> - -
-
-
- - - - IPCV >> Camera Handling > camread - -

-

camread

-

Grabs and returns a frame from a camera

- - -

Syntax

-
im = camread(n)
- -

Parameters

-
n : -

The opened video file/camera index.

-
im : -

The returned frame/image. If no frame, return 0.

- -

Description

-

camread grabs and returns a frame from a camera.

-

Video support for IPCV is only available when IPCV is compiled with OpenCV which support video I/O.

-

- -

Examples

-
n = camopen(0);
-sleep(200);
-im = camread(n); //get a frame
-imshow(im);
-camcloseall();
- -

See also

-
- -

Authors

-
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << camopen - - - Camera Handling - - - Deep Learning >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/corr2.html b/help/en_US/scilab_en_US_help/corr2.html deleted file mode 100644 index 5bafede..0000000 --- a/help/en_US/scilab_en_US_help/corr2.html +++ /dev/null @@ -1,86 +0,0 @@ - - - corr2 - - - - - - - - IPCV >> Image Analysis and Statistics > corr2 - -

-

corr2

-

2D correlation coefficient

- - -

Syntax

-
c = corr2(imA, imB)
- -

Parameters

-
imA, imB : -

imA and imB are 2D matrices of the same size.

-
c : -

Correlation coefficient, a scalar of class double.

- -

Description

-

corr2 computes correlation coefficient of two 2D matrices imA and imB. -c = sum( (imA-mA).*(imB-mB) / sqrt(sum((imA-mA).^2) * sum((imB-mB).^2)) -mA=mean2(imA) and mB=mean2(imB)

-

- -

Examples

-
- -

See also

-
  • mean2 — Average/mean of matrix elements
  • -
  • std2 — Standard deviation of 2D matrix elements
  • -
  • stdev2 — Standard deviation of 2D matrix elements
- -

Authors

-
  • Tan Chin Luh. Modified from the original work of Shiqi Yu
-
- - - - diff --git a/help/en_US/scilab_en_US_help/dnn_forward.html b/help/en_US/scilab_en_US_help/dnn_forward.html deleted file mode 100644 index 1f0e44d..0000000 --- a/help/en_US/scilab_en_US_help/dnn_forward.html +++ /dev/null @@ -1,110 +0,0 @@ - - - dnn_forward - - - -
- - - - -
- << Deep Learning - - - Deep Learning - - - dnn_getparam >> - -
-
-
- - - - IPCV >> Deep Learning > dnn_forward - -

-

dnn_forward

-

Runs forward pass to compute output of layer with name layer_name

- - -

Syntax

-
out = dnn_forward(net,img,scalefactor,image_size,rgb_mean,swapRB,layer_name);
- -

Parameters

-
net : -

DNN object loaded in Scilab

-
img : -

Image in Scilab format

-
input_size : -

DNN input size

-
layer_name : -

Name for layer which output is needed to get

-
scalefactor : -

Spatial size for input image

-
rgb_mean : -

Scalar with mean values which are subtracted from channels. Values are intended to be in (mean-R, mean-G, mean-B) order if image has BGR ordering and swapRB is true.

-
swapRB : -

Flag which indicates that swap first and last channels in 3-channel image is necessary.

-
crop : -

flag which indicates whether image will be cropped after resize or not

-
out : -

Output matrix of the results depending on the type of DNN loaded.

- -

Description

-

This function is used to run forward pass to compute output of layer with name layer_name

-

- -

Examples

-
dnn_path = fullpath(getIPCVpath() + '/images/dnn/');
-net = dnn_readmodel(dnn_path + 'lenet5.pb','','tensorflow');
-S = imread(dnn_path + '3.jpg');
-imshow(S);
-out = dnn_forward(net,~S,[28,28]);
-[maxV,maxI]=max(out);
-xnumb(10,10,maxI-1);
-e = gce();
-e.font_size = 10;
-e.font_color = 5;
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- -
- - - - - - -
Report an issue
- << Deep Learning - - - Deep Learning - - - dnn_getparam >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/dnn_getparam.html b/help/en_US/scilab_en_US_help/dnn_getparam.html deleted file mode 100644 index 67b2883..0000000 --- a/help/en_US/scilab_en_US_help/dnn_getparam.html +++ /dev/null @@ -1,104 +0,0 @@ - - - dnn_getparam - - - -
- - - - -
- << dnn_forward - - - Deep Learning - - - dnn_list >> - -
-
-
- - - - IPCV >> Deep Learning > dnn_getparam - -

-

dnn_getparam

-

Get the layer's parameters

- - -

Syntax

-
out = dnn_getparam(net,layer_name,numParam)
- -

Parameters

-
net : -

DNN object loaded in Scilab

-
layer_name : -

Name for layer which output is needed to get

-
numParam : -

index of the layer parameter in the layer

-
out : -

Output matrix of the results depending on the type of DNN loaded.

- -

Description

-

This function is used to retrieve the layer's parameters (filter coefficients)

-

- -

Examples

-
// Initialize
-dnn_unloadallmodels
-dnn_path = fullpath(getIPCVpath() + '/images/dnn/');
-net = dnn_readmodel(dnn_path + 'lenet5.pb','','tensorflow');
-
-// Read Image
-S = imread(dnn_path + '3.jpg');
-
-// Forward Pass
-para1 = dnn_getparam(net,"conv2d/Conv2D");
-scf();dnn_showparam(para1);
-
-// Clean Up
-dnn_unloadallmodels();
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- -
- - - - - - -
Report an issue
- << dnn_forward - - - Deep Learning - - - dnn_list >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/dnn_list.html b/help/en_US/scilab_en_US_help/dnn_list.html deleted file mode 100644 index f0c0dbf..0000000 --- a/help/en_US/scilab_en_US_help/dnn_list.html +++ /dev/null @@ -1,84 +0,0 @@ - - - dnn_list - - - -
- - - - -
- << dnn_getparam - - - Deep Learning - - - dnn_readmodel >> - -
-
-
- - - - IPCV >> Deep Learning > dnn_list - -

-

dnn_list

-

List all loaded DNN models in memory

- - -

Syntax

-
dnn_list()
- -

Parameters

-
- -

Description

-

This function is used for list all loaded DNN models in the memory.

-

- -

Examples

-
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- -
- - - - - - -
Report an issue
- << dnn_getparam - - - Deep Learning - - - dnn_readmodel >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/dnn_readmodel.html b/help/en_US/scilab_en_US_help/dnn_readmodel.html deleted file mode 100644 index 46e24de..0000000 --- a/help/en_US/scilab_en_US_help/dnn_readmodel.html +++ /dev/null @@ -1,100 +0,0 @@ - - - dnn_readmodel - - - -
- - - - -
- << dnn_list - - - Deep Learning - - - dnn_showfeature >> - -
-
-
- - - - IPCV >> Deep Learning > dnn_readmodel - -

-

dnn_readmodel

-

Read/Import DNN model from disk

- - -

Syntax

-
net = dnn_readmodel(model,modelinfo,modeltype);
- -

Parameters

-
model : -

Model binary (Caffe -> .caffemodel file, TF -> .pb file).

-
modelinfo : -

Model info (Caffe - > .prototxt file. TF -> .pbtxt file).

-
modeltype : -

Model type, currently support Caffe and Tensorflow model.

-
net : -

Loaded net with its' pointer and informations.

- -

Description

-

This function is used for loading DNN model and used in Scilab for inference system.

-

- -

Examples

-
dnn_path = fullpath(getIPCVpath() + '/images/dnn/');
-net = dnn_readmodel(dnn_path + 'lenet5.pb','','tensorflow');
-S = imread(dnn_path + '3.jpg');
-imshow(S);
-out = dnn_forward(net,~S,[28,28]);
-[maxV,maxI]=max(out);
-xnumb(10,10,maxI-1);
-e = gce();
-e.font_size = 10;
-e.font_color = 5;
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- -
- - - - - - -
Report an issue
- << dnn_list - - - Deep Learning - - - dnn_showfeature >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/dnn_showfeature.html b/help/en_US/scilab_en_US_help/dnn_showfeature.html deleted file mode 100644 index 2bfd912..0000000 --- a/help/en_US/scilab_en_US_help/dnn_showfeature.html +++ /dev/null @@ -1,100 +0,0 @@ - - - dnn_showfeature - - - -
- - - - -
- << dnn_readmodel - - - Deep Learning - - - dnn_showparam >> - -
-
-
- - - - IPCV >> Deep Learning > dnn_showfeature - -

-

dnn_showfeature

-

Visualize the DNN feature map

- - -

Syntax

-
dnn_showfeature(feature_map,out_num,c);
- -

Parameters

-
feature_map : -

Feature maps to be visualized

-
out_num : -

Number of outputs to be shown

-
c : -

Colormap for visualization

- -

Description

-

This function is used to visualize the DNN feature maps

-

- -

Examples

-
// Initialize
-dnn_unloadallmodels
-dnn_path = fullpath(getIPCVpath() + '/images/dnn/');
-net = dnn_readmodel(dnn_path + 'lenet5.pb','','tensorflow');
-
-// Read Image
-S = imread(dnn_path + '3.jpg');
-
-// Forward Pass
-out1 = dnn_forward(net,~S,[28,28],"conv2d/Conv2D");
-scf();dnn_showfeature(out1);
-
-// Clean Up
-dnn_unloadallmodels();
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- -
- - - - - - -
Report an issue
- << dnn_readmodel - - - Deep Learning - - - dnn_showparam >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/dnn_showparam.html b/help/en_US/scilab_en_US_help/dnn_showparam.html deleted file mode 100644 index 7f5c81e..0000000 --- a/help/en_US/scilab_en_US_help/dnn_showparam.html +++ /dev/null @@ -1,100 +0,0 @@ - - - dnn_showparam - - - -
- - - - -
- << dnn_showfeature - - - Deep Learning - - - dnn_showparamf2d >> - -
-
-
- - - - IPCV >> Deep Learning > dnn_showparam - -

-

dnn_showparam

-

Visualize the DNN parameters (filter) in spatial domain

- - -

Syntax

-
dnn_showfeature(para_map,out_num,c);
- -

Parameters

-
para_map : -

Parameter maps to be visualized

-
out_num : -

Number of outputs to be shown

-
c : -

Colormap for visualization

- -

Description

-

This function is used to visualize the DNN parameters (filter) in spatial domain

-

- -

Examples

-
// Initialize
-dnn_unloadallmodels
-dnn_path = fullpath(getIPCVpath() + '/images/dnn/');
-net = dnn_readmodel(dnn_path + 'lenet5.pb','','tensorflow');
-
-// Read Image
-S = imread(dnn_path + '3.jpg');
-
-// Forward Pass
-para1 = dnn_getparam(net,"conv2d/Conv2D");
-scf();dnn_showparam(para1);
-
-// Clean Up
-dnn_unloadallmodels();
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- - - - diff --git a/help/en_US/scilab_en_US_help/dnn_showparamf2d.html b/help/en_US/scilab_en_US_help/dnn_showparamf2d.html deleted file mode 100644 index be1ec86..0000000 --- a/help/en_US/scilab_en_US_help/dnn_showparamf2d.html +++ /dev/null @@ -1,100 +0,0 @@ - - - dnn_showparamf2d - - - -
- - - - -
- << dnn_showparam - - - Deep Learning - - - dnn_showparamf3d >> - -
-
-
- - - - IPCV >> Deep Learning > dnn_showparamf2d - -

-

dnn_showparamf2d

-

Visualize the DNN parameters (filter) in frequency domain (2D)

- - -

Syntax

-
dnn_showparamf3d(para_map,out_num,c)
- -

Parameters

-
para_map : -

Parameters to be visualized

-
out_num : -

Number of filters to be shown

-
c : -

Colormap for visualization

- -

Description

-

This function is used to visualize the DNN parameters (filter) in 2D frequency domain

-

- -

Examples

-
// Initialize
-dnn_unloadallmodels
-dnn_path = fullpath(getIPCVpath() + '/images/dnn/');
-net = dnn_readmodel(dnn_path + 'lenet5.pb','','tensorflow');
-
-// Read Image
-S = imread(dnn_path + '3.jpg');
-
-// Forward Pass
-para1 = dnn_getparam(net,"conv2d/Conv2D");
-scf();dnn_showparamf2d(para1);
-
-// Clean Up
-dnn_unloadallmodels();
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- - - - diff --git a/help/en_US/scilab_en_US_help/dnn_showparamf3d.html b/help/en_US/scilab_en_US_help/dnn_showparamf3d.html deleted file mode 100644 index 0df5fb4..0000000 --- a/help/en_US/scilab_en_US_help/dnn_showparamf3d.html +++ /dev/null @@ -1,100 +0,0 @@ - - - dnn_showparamf3d - - - -
- - - - -
- << dnn_showparamf2d - - - Deep Learning - - - dnn_unloadallmodels >> - -
-
-
- - - - IPCV >> Deep Learning > dnn_showparamf3d - -

-

dnn_showparamf3d

-

Visualize the DNN parameters (filter) in frequency domain (3D)

- - -

Syntax

-
dnn_showparamf3d(para_map,out_num,c)
- -

Parameters

-
para_map : -

Parameters to be visualized

-
out_num : -

Number of filters to be shown

-
c : -

Colormap for visualization

- -

Description

-

This function is used to visualize the DNN parameters (filter) in 3D frequency domain

-

- -

Examples

-
// Initialize
-dnn_unloadallmodels
-dnn_path = fullpath(getIPCVpath() + '/images/dnn/');
-net = dnn_readmodel(dnn_path + 'lenet5.pb','','tensorflow');
-
-// Read Image
-S = imread(dnn_path + '3.jpg');
-
-// Forward Pass
-para1 = dnn_getparam(net,"conv2d/Conv2D");
-scf();dnn_showparamf3d(para1);
-
-// Clean Up
-dnn_unloadallmodels();
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- - - - diff --git a/help/en_US/scilab_en_US_help/dnn_unloadallmodels.html b/help/en_US/scilab_en_US_help/dnn_unloadallmodels.html deleted file mode 100644 index 976273e..0000000 --- a/help/en_US/scilab_en_US_help/dnn_unloadallmodels.html +++ /dev/null @@ -1,84 +0,0 @@ - - - dnn_unloadallmodels - - - -
- - - - -
- << dnn_showparamf3d - - - Deep Learning - - - dnn_unloadmodel >> - -
-
-
- - - - IPCV >> Deep Learning > dnn_unloadallmodels - -

-

dnn_unloadallmodels

-

Unload all loaded DNN models from memory

- - -

Syntax

-
dnn_unloadallmodels()
- -

Parameters

-
- -

Description

-

This function is used for unloading all loaded DNN models from the memory.

-

- -

Examples

-
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- - - - diff --git a/help/en_US/scilab_en_US_help/dnn_unloadmodel.html b/help/en_US/scilab_en_US_help/dnn_unloadmodel.html deleted file mode 100644 index c2dbd60..0000000 --- a/help/en_US/scilab_en_US_help/dnn_unloadmodel.html +++ /dev/null @@ -1,85 +0,0 @@ - - - dnn_unloadmodel - - - - - - - - IPCV >> Deep Learning > dnn_unloadmodel - -

-

dnn_unloadmodel

-

Unload DNN model from memory

- - -

Syntax

-
dnn_unloadmodel(net)
- -

Parameters

-
net : -

DNN model object

- -

Description

-

This function is used for unloading DNN model from the memory.

-

- -

Examples

-
- -

See also

-
- -

Authors

-
  • CL Tan - Trity Technologies.
-
- - - - diff --git a/help/en_US/scilab_en_US_help/edge.html b/help/en_US/scilab_en_US_help/edge.html deleted file mode 100644 index 5324bae..0000000 --- a/help/en_US/scilab_en_US_help/edge.html +++ /dev/null @@ -1,118 +0,0 @@ - - - edge - - - -
- - - - -
- << corr2 - - - Image Analysis and Statistics - - - imhist >> - -
-
-
- - - - IPCV >> Image Analysis and Statistics > edge - -

-

edge

-

Find edges in a single channel image.

- - -

Syntax

-
E = edge(im, method)
-E = edge(im, method, thresh)
-E = edge(im, method, thresh, direction)
-E = edge(im, method, thresh, sigma)
-[E, thresh] = edge(im, method, ...)
- -

Parameters

-
im : -

Input image which must be a single channel image.

-
method : -

may be 'sobel'(default), 'prewitt', 'log', 'fftderiv' or 'canny'. Other methods will appear in the future.

-
thresh : -

sets the threshold level, from 0 to 1. Defaults to 0.2. If negative, then the output image, E , will have the un-thresholded gradient image.

-
direction : -

may be 'horizontal', 'vertical' or 'both'(default). This determines the direction to compute the image gradient.

-
sigma : -

Controls the ammount of high-frequency attenuation in some methods (only the 'fftderiv' method uses this parameter). This can be used to obtain different levels of detail and to filter out high-frequency noise.

-
E : -

edge image which is boolean matrix and has the same size as im . If thresh<0 , E is a double un-thresholded image.

- -

Description

-

The function edge performs edge detection on a grayscale intensity image. The user may set the method, the threshold level, the direction of the edge detection, etc.

-

E=edge(im, 'sobel', thresh, direction) -Detects edges in im , using the sobel gradient estimator.

-

E=edge(im, 'prewitt', thresh, direction) -Detects edges in im , using the prewitt gradient estimator.

-

E=edge(im, 'log', thresh, sigma) -Detects edges in im , using the the Laplacian of Gaussian method. sigma is the standard deviation of the LoG filter and the size of the LoG filter is nxn, where n = ceil(sigma*3)*2+1. The default value for sigma is 2.

-

E=edge(im, 'fftderiv', thresh, direction, sigma) -Detects edges in im , using the FFT gradient method, default sigma 1.0

-

E=edge(im, 'canny', thresh, sigma) -Detects edges in im , using Canny method. thresh is a two-element vector, in which the fist element is the low threshold and the seond one is the high threshold. If thresh is a scalar, the low threshold is 0.4*thresh and the high one is thresh . Besides, thresh can not be negative scalar. sigma is the Aperture parameter for canny operator, which must be 1, 3, 5 or 7. default thresh 0.2; default sigma 3.

-

Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

-

- -

Examples

-
im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
-im = rgb2gray(im);
-E = edge(im, 'sobel');
-imshow(E);
-
-E = edge(im, 'canny', [0.06, 0.2]);
-imshow(E);
-
-E = edge(im, 'prewitt');
-imshow(mat2gray(E));
- -

See also

-
- -

Authors

-
  • Shiqi Yu (SIVP)
  • -
  • Ricardo Fabbri (SIP)
  • -
  • Tan Chin Luh (IPCV)
-
- -
- - - - - - -
Report an issue
- << corr2 - - - Image Analysis and Statistics - - - imhist >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/fft2pad.html b/help/en_US/scilab_en_US_help/fft2pad.html deleted file mode 100644 index 4833f28..0000000 --- a/help/en_US/scilab_en_US_help/fft2pad.html +++ /dev/null @@ -1,90 +0,0 @@ - - - fft2pad - - - - - - - - IPCV >> Filter Design and Visualization > fft2pad - -

-

fft2pad

-

Pad smaller matrix with zeros to the given size before transformation.

- - -

Syntax

-
y = fft2pad(x,r,c)
- -

Parameters

-
x : -

Source matrix

-
r : -

Number of rows for the output image

-
c : -

Number of columns for the output image

-
y : -

Output matric with rxc size

- -

Description

-

FFT2PAD will pad the input matrix to the given r x c size, and perform fft2 -after the padding. This will yield the output matrix at the same size given. -This is useful in the frequency domain filtering.

-

- -

Examples

-
x = testmatrix('magic',5);
-y = fft2pad(x,8,8);
- -

See also

-
  • imdct — Discrete cosine transform (DCT)
  • -
  • imidct — Inverse discrete cosine transform (DCT)
- -

Authors

-
  • Tan Chin Luh
-
- - - - diff --git a/help/en_US/scilab_en_US_help/filter2.html b/help/en_US/scilab_en_US_help/filter2.html deleted file mode 100644 index d1054f8..0000000 --- a/help/en_US/scilab_en_US_help/filter2.html +++ /dev/null @@ -1,90 +0,0 @@ - - - filter2 - - - - - - - - IPCV >> Image Linear Filtering > filter2 - -

-

filter2

-

2D digital filtering

- - -

Syntax

-
inf = filter2(im,F)
- -

Parameters

-
im : -

An image/matrix which will be filterd. The image can be INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

-
F : -

A double 2D filter.

-
imf : -

The filtered image which has the same size with imf and the class double.

- -

Description

-

filter2 filters an image im with filter F. When im is a mult-channel image, each channel can be filtered with F seperately. Input image pixel values outside the bounds of the image are assumed to equal the nearest array border value.

-

The only diffence of filter2 with imfilter is the output of filter2 is double matrix, and the output of imfilter has the same type as input and the elements in the output matrix that exceed the range of the integer type will be truncated.

-

- -

Examples

-
im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
-filter = fspecial('sobel');
-imf = filter2(im,filter);
-imshow(imf);
- -

See also

-
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- - - - diff --git a/help/en_US/scilab_en_US_help/fspecial.html b/help/en_US/scilab_en_US_help/fspecial.html deleted file mode 100644 index 42b8f78..0000000 --- a/help/en_US/scilab_en_US_help/fspecial.html +++ /dev/null @@ -1,110 +0,0 @@ - - - fspecial - - - -
- - - - -
- << filter2 - - - Image Linear Filtering - - - imfilter >> - -
-
-
- - - - IPCV >> Image Linear Filtering > fspecial - -

-

fspecial

-

Create some 2D special filters

- - -

Syntax

-
F = fspecial(type)
-F = fspecial(type, op1)
-F = fspecial(type, op1, op2)
- -

Parameters

-
type : -

Filter type. It can be one of these string: 'sobel', 'prewitt', 'gaussion', 'laplacian', 'log', 'average', 'unsharp', 'motion'. ('disk' in future.)

-
op1 : -

The first parameter for the filter. Some type of filters do not need it.

-
op2 : -

The second parameter for the filter. Some type of filters do not need it.

-
FT : -

The returned filter, which is of type double.

- -

Description

-

fspecial create some 2D special filters. If no parameters are given, fspecial will uses default values.

-

The supported filters and the syntax for each filter type are listed in the following list:

-

F = fspecial('sobel') : -
returns a 3x3 horizontal edges sobel filter. If you want avertical e dges sobel filter, you can use transposition of F. F is [ 1 2 1; 0 0 0; -1 -2 -1].
-
F = fspecial('prewitt') : -
returns a 3x3 horizontal edges prewitt filter. If you want avertical edges prewitt filter, you can use transposition of F. F is [ 1 1 1; 0 0 0; -1 -1 -1].
-
F = fspecial('gaussian', hsize, sigma) : -
returns a Gaussian lowpass filter. The size of returned filter is determined by parameter hsize. hsize can be a 1x2 vector which indicate the rows and columns of F. If hsize is a scalar, F is a square matrix. The default value for hsize is [3, 3]; the default value for sigma is 0.5.
-
F = fspecial('laplacian', alpha) : -
returns a 3-by-3 Laplacian filter. The returned filter is [alpha, 1-alpha, alpha; 1-alpha, -4, 1-alpha; alpha, 1-alpha, alpha]/(alpha+1). The default value for alpha is 0.2.
-
F = fspecial('log', hsize, sigma) : -
returns a Laplacian of Gaussian filter. The size of returned filter is determined by parameter hsize. hsize can be a 1x2 vector which indicate the rows and columns of F. If hsize is a scalar, F is a square matrix. The default value for hsize is [5, 5]; the default value for sigma is 0.5.
-
F = fspecial('average',hsize) : -
returns an averaging filter. The size of returned filter is determined by parameter hsize. hsize can be a 1x2 vector which indicate the rows and columns of F. If hsize is a scalar, F is a square matrix. The default value for hsize is [3, 3].
-
F = fspecial('unsharp', alpha) : -
returns a 3x3 unsharp contrast enhancement filter. alpha must be in the range [0.0, 1.0]. The default value of alpha is 0.2.
-
F = fspecial('motion', length, angle1) : -
returns a motion blurred filter with length and angle.

-

- -

Examples

-
im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
-filter = fspecial('sobel');
-imf = imfilter(im, filter);
-imshow(imf);
- -

See also

-
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- -
- - - - - - -
Report an issue
- << filter2 - - - Image Linear Filtering - - - imfilter >> - -
-
-
- - diff --git a/help/en_US/scilab_en_US_help/hsv2rgb.html b/help/en_US/scilab_en_US_help/hsv2rgb.html deleted file mode 100644 index 88db880..0000000 --- a/help/en_US/scilab_en_US_help/hsv2rgb.html +++ /dev/null @@ -1,93 +0,0 @@ - - - hsv2rgb - - - - - - - - IPCV >> Image Types and Color Space Conversions > hsv2rgb - -

-

hsv2rgb

-

Convert a HSV image to the equivalent RGB image.

- - -

Syntax

-
RGB = hsv2rgb(HSV)
- -

Parameters

-
HSV : -

A HSV image (hypermat). The dimension of HSV should be M x N x 3 , the type should be double and the element value range should be [0,1].

-
RGB : -

Output image, which has the same size and type as HSV.

- -

Description

-

hsv2rgb convert a HSV image to the equivalent RGB image.

-

Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

-

- -

Examples

-
RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
-HSV = rgb2hsv(RGB);
-RGB = hsv2rgb(HSV);
-imshow(RGB);
- - - -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- - - - diff --git a/help/en_US/scilab_en_US_help/hsv2rgb2.html b/help/en_US/scilab_en_US_help/hsv2rgb2.html deleted file mode 100644 index ea066df..0000000 --- a/help/en_US/scilab_en_US_help/hsv2rgb2.html +++ /dev/null @@ -1,93 +0,0 @@ - - - hsv2rgb2 - - - - - - - - IPCV >> Image Types and Color Space Conversions > hsv2rgb2 - -

-

hsv2rgb2

-

Convert a HSV image to the equivalent RGB image.

- - -

Syntax

-
RGB = hsv2rgb2(HSV)
- -

Parameters

-
HSV : -

A HSV image (hypermat). The dimension of HSV should be M x N x 3 , the type should be double and the element value range should be [0,1].

-
RGB : -

Output image, which has the same size and type as HSV.

- -

Description

-

hsv2rgb convert a HSV image to the equivalent RGB image.

-

Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

-

- -

Examples

-
RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
-HSV = rgb2hsv(RGB);
-RGB = hsv2rgb2(HSV);
-imshow(RGB);
- -

See also

-
  • rgb2gray — Convert RGB images to gray images
  • -
  • mat2gray — Convert matrix to grayscale image
  • -
  • rgb2hsv — Convert a RGB image to the equivalent HSV image
  • -
  • rgb2ycbcr — Convert a RGB image to the equivalent YCbCr image.
  • -
  • ycbcr2rgb — Convert a YCbCr image to the equivalent RGB image.
  • -
  • rgb2ntsc — Convert a RGB image to the equivalent NTSC image YIQ.
  • -
  • ntsc2rgb — Convert a NTSC image to the equivalent RGB image.
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- - - - diff --git a/help/en_US/scilab_en_US_help/im2bw.html b/help/en_US/scilab_en_US_help/im2bw.html deleted file mode 100644 index 9f6d0e9..0000000 --- a/help/en_US/scilab_en_US_help/im2bw.html +++ /dev/null @@ -1,94 +0,0 @@ - - - im2bw - - - - - - - - IPCV >> Image Types and Color Space Conversions > im2bw - -

-

im2bw

-

Convert image to binary

- - -

Syntax

-
im2 = im2bw(im, thresh)
- -

Parameters

-
im : -

An matrix/image, which can be ANY image supported by IPCV.

-
thresh : -

Threshold value. You specify thresh in the range [0,1], regardless of the class of the input image.

-
im2 : -

Boolean matrix.

- -

Description

-

im2bw convert intensity or RGB images to binary images. The output is a boolean matrix, which has value of %T for all pixels in the input image with luminance grater than thresh and %F for all the other pixels. (You specify thresh in the range [0,1], regardless of the type of the input image.)

-

- -

Examples

-
S = imread(fullpath(getIPCVpath() + "/images/balloons.png"));
-S2 = rgb2gray(S);
-Sbin = im2bw(S2,0.5);
-imshow(Sbin);
- -

See also

-
  • im2uint8 — Convert image to 8-bit unsigned integers
  • -
  • im2int8 — Convert image to 8-bit signed integers
  • -
  • im2uint16 — Convert image to 16-bit unsigned integers
  • -
  • im2int16 — Convert image to 16-bit signed integers
  • -
  • im2int32 — Convert image to 32-bit signed integers
  • -
  • im2double — Convert image to double precision
  • -
  • mat2gray — Convert matrix to grayscale image
- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
-
- - - - diff --git a/help/en_US/scilab_en_US_help/im2col.html b/help/en_US/scilab_en_US_help/im2col.html deleted file mode 100644 index 47587c0..0000000 --- a/help/en_US/scilab_en_US_help/im2col.html +++ /dev/null @@ -1,88 +0,0 @@ - - - im2col - - - - - - - - IPCV >> Image Block Processing > im2col - -

-

im2col

-

Convert image into series of columns

- - -

Syntax

-
y = im2col(x,blk)
- -

Parameters

-
x : -

Source Image

-
blk : -

Block size [m,n]

- -

Description

-

This function is used to convert the image to columns of vector for -faster processing as Scilab perform better with vectorization code.

-

- -

Examples

-
A = testmatrix('mag',4);
-B = im2col(A,[3 3]);
-C = mean(B,1);
-D = matrix(C,[4,4])';
- -

See also

-
  • imblockproc — Distict block processing for an image
  • -
  • imblockslide — Sliding block processing for an image
  • -
  • imcolproc — Sliding block processing for an image, with vectorization
- -

Authors

-
  • Tan Chin Luh
-
- - - - diff --git a/help/en_US/scilab_en_US_help/im2double.html b/help/en_US/scilab_en_US_help/im2double.html deleted file mode 100644 index 7fe95fe..0000000 --- a/help/en_US/scilab_en_US_help/im2double.html +++ /dev/null @@ -1,80 +0,0 @@ - - - im2double - - - - - - - - IPCV >> Image Types and Color Space Conversions > im2double - -

-

im2double

-

Convert image to double precision

- - -

Syntax

-
im2 = im2double(im)
- -

Parameters

-
im : -

An matrix/image, which can be ANY image supported by IPCV.

-
im2 : -

Output image, a double precision matrix.

- -

Description

-

im2double convert intensity or RGB images to double precision. If the input is of class double, the output image is identical to it. Otherwise, im2double rescales or offsets the data, and returns the equivalent image of class double.

-

- -

Authors

-
  • Shiqi Yu
  • -
  • Tan Chin Luh
- -

See also

-
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/im2int16.html b/help/en_US/scilab_en_US_help/im2int16.html deleted file mode 100644 index 02564e6..0000000 --- a/help/en_US/scilab_en_US_help/im2int16.html +++ /dev/null @@ -1,86 +0,0 @@ - - - im2int16 - - - - - - - - IPCV >> Image Types and Color Space Conversions > im2int16 - -

    -

    im2int16

    -

    Convert image to 16-bit signed integers

    - - -

    Syntax

    -
    im2 = im2int16(im)
    - -

    Parameters

    -
    im : -

    An matrix/image, which can be ANY image supported by IPCV.

    -
    im2 : -

    Output image, a 16-bit signed integer matrix.

    - -

    Description

    -

    im2int16 convert intensity or RGB images to 16-bit signed integers. If the input is of class int16, the output image is identical to it. Otherwise, im2int16 rescales or offsets the data, and returns the equivalent image of class int16.

    -

    - -

    See also

    -
    • im2bw — Convert image to binary
    • -
    • im2uint8 — Convert image to 8-bit unsigned integers
    • -
    • im2int8 — Convert image to 8-bit signed integers
    • -
    • im2uint16 — Convert image to 16-bit unsigned integers
    • -
    • im2int32 — Convert image to 32-bit signed integers
    • -
    • im2double — Convert image to double precision
    • -
    • mat2gray — Convert matrix to grayscale image
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/im2int32.html b/help/en_US/scilab_en_US_help/im2int32.html deleted file mode 100644 index e8249b5..0000000 --- a/help/en_US/scilab_en_US_help/im2int32.html +++ /dev/null @@ -1,86 +0,0 @@ - - - im2int32 - - - - - - - - IPCV >> Image Types and Color Space Conversions > im2int32 - -

    -

    im2int32

    -

    Convert image to 32-bit signed integers

    - - -

    Syntax

    -
    im2 = im2int32(im)
    - -

    Parameters

    -
    im : -

    An matrix/image, which can be ANY image supported by IPCV.

    -
    im2 : -

    Output image, a 32-bit signed integer matrix.

    - -

    Description

    -

    im2int32 convert intensity or RGB images to 32-bit signed integers. If the input is of class int32, the output image is identical to it. Otherwise, im2int32 rescales or offsets the data, and returns the equivalent image of class int32.

    -

    - -

    See also

    -
    • im2bw — Convert image to binary
    • -
    • im2uint8 — Convert image to 8-bit unsigned integers
    • -
    • im2int8 — Convert image to 8-bit signed integers
    • -
    • im2uint16 — Convert image to 16-bit unsigned integers
    • -
    • im2int16 — Convert image to 16-bit signed integers
    • -
    • im2double — Convert image to double precision
    • -
    • mat2gray — Convert matrix to grayscale image
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/im2int8.html b/help/en_US/scilab_en_US_help/im2int8.html deleted file mode 100644 index 7876426..0000000 --- a/help/en_US/scilab_en_US_help/im2int8.html +++ /dev/null @@ -1,86 +0,0 @@ - - - im2int8 - - - - - - - - IPCV >> Image Types and Color Space Conversions > im2int8 - -

    -

    im2int8

    -

    Convert image to 8-bit signed integers

    - - -

    Syntax

    -
    im2 = im2int8(im)
    - -

    Parameters

    -
    im : -

    An matrix/image, which can be ANY image supported by IPCV.

    -
    im2 : -

    Output image, an 8-bit signed integer matrix.

    - -

    Description

    -

    im2int8 convert intensity or RGB images to 8-bit signed integers. If the input is of class int8, the output image is identical to it. Otherwise, im2int8 rescales or offsets the data, and returns the equivalent image of class int8.

    -

    - -

    See also

    -
    • im2bw — Convert image to binary
    • -
    • im2uint8 — Convert image to 8-bit unsigned integers
    • -
    • im2uint16 — Convert image to 16-bit unsigned integers
    • -
    • im2int16 — Convert image to 16-bit signed integers
    • -
    • im2int32 — Convert image to 32-bit signed integers
    • -
    • im2double — Convert image to double precision
    • -
    • mat2gray — Convert matrix to grayscale image
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/im2movie.html b/help/en_US/scilab_en_US_help/im2movie.html deleted file mode 100644 index 0b4f5a9..0000000 --- a/help/en_US/scilab_en_US_help/im2movie.html +++ /dev/null @@ -1,91 +0,0 @@ - - - im2movie - - - - - - - - IPCV >> Utilities and Interactive Tools > im2movie - -

    -

    im2movie

    -

    Create movie from sequence of images

    - - -

    Syntax

    -
    err = im2movie(mvfn,imfn,sz,fps,fourcc)
    - -

    Parameters

    -
    mvfn : -

    Output moive filename

    -
    sz : -

    A 1x2 vector, which indicates the frame size (width, height).

    -
    fps : -

    Frame pre second

    -
    fourcc : -

    4-character code of codec used to compress the frames

    -
    repeat : -

    How many times to repeat the sequence images

    -
    err : -

    Error message if any

    - -

    Description

    -

    This function convert sequence of images to movie with given setting.

    -

    - -

    Examples

    -
    err = im2movie('test.avi',[1000 600],30,'xvid');
    - -

    See also

    -
    • avifile — Create a new video file to write.
    • -
    • addframe — Add a frame to the video file. (Depreciated. Replaced by aviaddframe.)
    - -

    Authors

    -
    • Copyright (C) 2012 - Trity Technologies.
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/im2uint16.html b/help/en_US/scilab_en_US_help/im2uint16.html deleted file mode 100644 index 50c10b3..0000000 --- a/help/en_US/scilab_en_US_help/im2uint16.html +++ /dev/null @@ -1,86 +0,0 @@ - - - im2uint16 - - - - - - - - IPCV >> Image Types and Color Space Conversions > im2uint16 - -

    -

    im2uint16

    -

    Convert image to 16-bit unsigned integers

    - - -

    Syntax

    -
    im2 = im2uint16(im)
    - -

    Parameters

    -
    im : -

    An matrix/image, which can be ANY image supported by IPCV.

    -
    im2 : -

    Output image, a 16-bit unsigned integer matrix.

    - -

    Description

    -

    im2uint16 convert intensity or RGB images to 16-bit unsigned integers. If the input is of class uint16, the output image is identical to it. Otherwise, im2uint16 rescales or offsets the data, and returns the equivalent image of class uint16.

    -

    - -

    See also

    -
    • im2bw — Convert image to binary
    • -
    • im2uint8 — Convert image to 8-bit unsigned integers
    • -
    • im2int8 — Convert image to 8-bit signed integers
    • -
    • im2int16 — Convert image to 16-bit signed integers
    • -
    • im2int32 — Convert image to 32-bit signed integers
    • -
    • im2double — Convert image to double precision
    • -
    • mat2gray — Convert matrix to grayscale image
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/im2uint8.html b/help/en_US/scilab_en_US_help/im2uint8.html deleted file mode 100644 index 6df6508..0000000 --- a/help/en_US/scilab_en_US_help/im2uint8.html +++ /dev/null @@ -1,86 +0,0 @@ - - - im2uint8 - - - - - - - - IPCV >> Image Types and Color Space Conversions > im2uint8 - -

    -

    im2uint8

    -

    Convert image to 8-bit unsigned integers

    - - -

    Syntax

    -
    im2 = im2uint8(im)
    - -

    Parameters

    -
    im : -

    An matrix/image, which can be ANY image supported by IPCV.

    -
    im2 : -

    Output image, an 8-bit unsigned integer matrix.

    - -

    Description

    -

    im2uint8 convert intensity or RGB images to 8-bit unsigned integers. If the input is of class uint8, the output image is identical to it. Otherwise, im2uint8 rescales or offsets the data, and returns the equivalent image of class uint8.

    -

    - -

    See also

    -
    • im2bw — Convert image to binary
    • -
    • im2int8 — Convert image to 8-bit signed integers
    • -
    • im2uint16 — Convert image to 16-bit unsigned integers
    • -
    • im2int16 — Convert image to 16-bit signed integers
    • -
    • im2int32 — Convert image to 32-bit signed integers
    • -
    • im2double — Convert image to double precision
    • -
    • mat2gray — Convert matrix to grayscale image
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imabsdiff.html b/help/en_US/scilab_en_US_help/imabsdiff.html deleted file mode 100644 index a9ad787..0000000 --- a/help/en_US/scilab_en_US_help/imabsdiff.html +++ /dev/null @@ -1,87 +0,0 @@ - - - imabsdiff - - - -
    - - - - -
    - << Image Arithmetic - - - Image Arithmetic - - - imadd >> - -
    -
    -
    - - - - IPCV >> Image Arithmetic > imabsdiff - -

    -

    imabsdiff

    -

    Calculate absolute difference of two images

    - - -

    Syntax

    -
    imout = imabsdiff(im1, im2)
    - -

    Parameters

    -
    im1, im2 : -

    Input images, which can be any kinds of images, but must have the same width, height, class and number of channels.

    -
    imout : -

    The absolute difference of two input images.

    - -

    Description

    -

    imabsdiff calculate the absolute difference of two images. The two input images must have the same width, height, class and number of channels.

    -

    If im1 and im2 are an integer matrices, the elements in the output matrix imout that exceed the range of the integer type will be truncated.

    -

    Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

    -

    - -

    See also

    -
    • imadd — Add two images or add a constant to an image
    • -
    • imsubtract — Subtract two images or subtract a constant from an image
    • -
    • immultiply — Multiply two images or multiply an image by an constant.
    • -
    • imdivide — Divide two images or divide an image by an constant.
    • -
    • imcomplement — Complement image
    • -
    • imlincomb — Linear combination of images
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << Image Arithmetic - - - Image Arithmetic - - - imadd >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imadd.html b/help/en_US/scilab_en_US_help/imadd.html deleted file mode 100644 index 4a494a8..0000000 --- a/help/en_US/scilab_en_US_help/imadd.html +++ /dev/null @@ -1,97 +0,0 @@ - - - imadd - - - -
    - - - - -
    - << imabsdiff - - - Image Arithmetic - - - imcomplement >> - -
    -
    -
    - - - - IPCV >> Image Arithmetic > imadd - -

    -

    imadd

    -

    Add two images or add a constant to an image

    - - -

    Syntax

    -
    imout = imadd(im1, im2)
    - -

    Parameters

    -
    im1 : -

    Input image.

    -
    im2 : -

    Input image with the same size and same class with im1 , or a double scalar.

    -
    imout : -

    The sum of im1 and im2 .

    - -

    Description

    -

    If im1 and im2 are images with the same size and same class, imadd adds each element in im1 to the corresponding one in im2. If im2 is a double scalar, the element in imout is the sum of the corresponding one in im1 with the double scalar. imout has the same size and class with im1.

    -

    If im1 is an integer matrix, the elements in the output matrix imout that exceed the range of the integer type will be truncated.

    -

    Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

    -

    - -

    Examples

    -
    im1 = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
    -im2 = imread(fullpath(getIPCVpath() + "/images/peppers.png"));
    -ims1 = imadd(im1, im2);
    -ims2 = imadd(im1, 50);
    -imshow(ims1);
    -scf(); imshow(ims2);
    - -

    See also

    -
    • imabsdiff — Calculate absolute difference of two images
    • -
    • imsubtract — Subtract two images or subtract a constant from an image
    • -
    • immultiply — Multiply two images or multiply an image by an constant.
    • -
    • imdivide — Divide two images or divide an image by an constant.
    • -
    • imcomplement — Complement image
    • -
    • imlincomb — Linear combination of images
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imabsdiff - - - Image Arithmetic - - - imcomplement >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imaddtext.html b/help/en_US/scilab_en_US_help/imaddtext.html deleted file mode 100644 index aea2582..0000000 --- a/help/en_US/scilab_en_US_help/imaddtext.html +++ /dev/null @@ -1,101 +0,0 @@ - - - imaddtext - - - - - - - - IPCV >> Utilities and Interactive Tools > imaddtext - -

    -

    imaddtext

    -

    Adding text to a color image

    - - -

    Syntax

    -
    SS = imaddtext(S,str,x,y,font_sz,font_style,font_color [,angle [,box]])
    - -

    Parameters

    -
    S : -

    Input image

    -
    str : -

    String to add

    -
    x : -

    Offset from lower left corner, x

    -
    y : -

    Offset from lower left corner, y

    -
    font_sz : -

    Font size, 0-10. Type "help graphic_fonts" for details

    -
    font_style : -

    Font style, 0-10. Type "help graphic_fonts" for details

    -
    font_color : -

    Font color. Type "help color_list" for details

    -
    angle : -

    optional real scalar, clockwise angle of string in degrees; default is 0.

    -
    box : -

    optional integer scalar; if box=1 and angle=0, a box is drawn around the string; otherwise, no box is drawn.

    -
    SS : -

    Output image

    - -

    Description

    -

    Add text provided by the user to a color image with specified location, font size, style and color.

    -

    - -

    Examples

    -
    I1 = imread(fullpath(getIPCVpath() + "/images/measure.jpg"));
    -I2 = imaddtext(I1,'Testing',100,100,5,6,'blue');
    -imshow(I2);
    - -

    See also

    -
    • imshow — Display image in graphic window
    • -
    • xs2im — Convert graphics to an image matrix.
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imadjust.html b/help/en_US/scilab_en_US_help/imadjust.html deleted file mode 100644 index 06574b8..0000000 --- a/help/en_US/scilab_en_US_help/imadjust.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imadjust - - - - - - - - IPCV >> Image Enhancement and Restoration > imadjust - -

    -

    imadjust

    -

    Adjust the intensity of an image from given source histogram range to the destination histogram range

    - - -

    Syntax

    -
    imout = imadjust(imin,src,dest)
    - -

    Parameters

    -
    imin : -

    Source Image

    -
    src : -

    Source histogram range [min max]

    -
    dest : -

    destination histogram range [min max]

    -
    imout : -

    Destination Image

    - -

    Description

    -

    This function use to adjust the intensity of an image using histogram -range method. The new image would be map into the new range with given -min and max values

    -

    - -

    Examples

    -
    I = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -J = imadjust(I,[0 0.5],[0.5 1]);
    -imshow(I)
    -scf;imshow(J);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imbestmatches.html b/help/en_US/scilab_en_US_help/imbestmatches.html deleted file mode 100644 index 72d9784..0000000 --- a/help/en_US/scilab_en_US_help/imbestmatches.html +++ /dev/null @@ -1,109 +0,0 @@ - - - imbestmatches - - - - - - - - IPCV >> Feature Detection, Description and Matching > imbestmatches - -

    -

    imbestmatches

    -

    Find the best matched features from 2 features objects and the matching matrix

    - - -

    Syntax

    -
    [fout1,fout2,mout] = imbestmatches(fobj1,fobj2,m,n);
    - -

    Parameters

    -
    fobj1 : -

    First feature object

    -
    fobj2 : -

    Second feature object

    -
    m : -

    Matching matrix

    -
    n : -

    Number of best matches to returned

    -
    fout1 : -

    First best feature object

    -
    fout2 : -

    Second best feature object

    -
    mout : -

    New matching matrix corresponding to the best matches

    - -

    Description

    -

    This function find the best matches of 2 features objects with their mathching matrix.

    -

    - -

    Examples

    -
    // Read the image and rotate it by 45 degrees
    -S = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -S2 = imrotate(S,45);
    -// Use the ORB to detect features
    -f1 = imdetect_ORB(S)
    -f2 = imdetect_ORB(S2)
    -// Extract the descriptor
    -d1 = imextract_DescriptorORB(S,f1);
    -d2 = imextract_DescriptorORB(S2,f2);
    -// Feature matching
    -m = immatch_BruteForce(d1,d2,4)
    -// Find the 10 best matches
    -[fout1,fout2,mout] = imbestmatches(f1,f2,m,10);
    -// Draw the matches
    -SS = imdrawmatches(S,S2,fout1,fout2,mout);
    -// Show the comparison
    -imshow(SS);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imblackhat.html b/help/en_US/scilab_en_US_help/imblackhat.html deleted file mode 100644 index 1b94ef1..0000000 --- a/help/en_US/scilab_en_US_help/imblackhat.html +++ /dev/null @@ -1,95 +0,0 @@ - - - imblackhat - - - -
    - - - - -
    - << bwborder - - - Morphological Operations - - - imblobprop >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imblackhat - -

    -

    imblackhat

    -

    Image blackhat

    - - -

    Syntax

    -
    imout = imblackhat(imin,se)
    - -

    Parameters

    -
    imin : -

    Input image

    -
    se : -

    Structure element

    -
    imout : -

    Output image

    - -

    Description

    -

    This operation is the difference between an input image and its opening

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/morpex.png"));
    -se = imcreatese('ellipse',7,7);
    -S2 = imblackhat(S,se);
    -imshow(S2);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imblobprop.html b/help/en_US/scilab_en_US_help/imblobprop.html deleted file mode 100644 index 0dd61b5..0000000 --- a/help/en_US/scilab_en_US_help/imblobprop.html +++ /dev/null @@ -1,93 +0,0 @@ - - - imblobprop - - - -
    - - - - -
    - << imblackhat - - - Morphological Operations - - - imclose >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imblobprop - -

    -

    imblobprop

    -

    Calculate blobs properties from labeled image

    - - -

    Syntax

    -
    [A, BB, ctr] = imblobprop(imin)
    - -

    Parameters

    -
    imin : -

    Source Image

    -
    A : -

    Area of the blob

    -
    BB : -

    Bounding box for the blob

    -
    ctr : -

    Centroid of the blob

    - -

    Description

    -

    This function find components properties, for now, area and bounding box.

    -

    - -

    Examples

    -
    A = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
    -A_edge = edge(A,'canny');
    -se = imcreatese('ellipse',15,15);
    -A_dilate = imdilate(A_edge,se);
    -[A_labeled,n] = imlabel(A_dilate);
    -imshow(A_labeled,jetcolormap(n));
    -[Area, BB, ctr] = imblobprop(A_labeled);
    -imrects(BB,[255,0,0]);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imblockproc.html b/help/en_US/scilab_en_US_help/imblockproc.html deleted file mode 100644 index 268a45f..0000000 --- a/help/en_US/scilab_en_US_help/imblockproc.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imblockproc - - - -
    - - - - -
    - << im2col - - - Image Block Processing - - - imblockslide >> - -
    -
    -
    - - - - IPCV >> Image Block Processing > imblockproc - -

    -

    imblockproc

    -

    Distict block processing for an image

    - - -

    Syntax

    -
    y = imblockproc(x,blk,func)
    - -

    Parameters

    -
    x : -

    Source Image

    -
    blk : -

    Block size [m,n]

    -
    func : -

    A function name which provide the processing function. The fucntion

    - -

    Description

    -

    This function is block processing function with distinct blocks. -Distinct blocks are rectangular partitions that divide an image matrix -into m-by-n section

    -

    - -

    Examples

    -
    A = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -deff('y=myfunc(x)','y = mean(x)');
    -y = imblockproc(A,[9 9],'myfunc');
    -imshow(y);
    - -

    See also

    -
    • imblockslide — Sliding block processing for an image
    • -
    • im2col — Convert image into series of columns
    • -
    • imcolproc — Sliding block processing for an image, with vectorization
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << im2col - - - Image Block Processing - - - imblockslide >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imblockslide.html b/help/en_US/scilab_en_US_help/imblockslide.html deleted file mode 100644 index 29a5133..0000000 --- a/help/en_US/scilab_en_US_help/imblockslide.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imblockslide - - - -
    - - - - -
    - << imblockproc - - - Image Block Processing - - - imcolproc >> - -
    -
    -
    - - - - IPCV >> Image Block Processing > imblockslide - -

    -

    imblockslide

    -

    Sliding block processing for an image

    - - -

    Syntax

    -
    y = imblockproc(x,blk,func)
    - -

    Parameters

    -
    x : -

    Source Image

    -
    blk : -

    Block size [m,n]

    -
    func : -

    A function name which provide the processing function. The fucntion

    - -

    Description

    -

    This function is block processing function with sliding blocks. -Sliding blocks are rectangular partitions that divide an image matrix -into m-by-n section

    -

    - -

    Examples

    -
    A = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -deff('y=myfunc(x)','y = mean(x)');
    -y = imblockslide(A,[9 9],'myfunc');
    -imshow(y);
    - -

    See also

    -
    • imblockproc — Distict block processing for an image
    • -
    • im2col — Convert image into series of columns
    • -
    • imcolproc — Sliding block processing for an image, with vectorization
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imbreakset.html b/help/en_US/scilab_en_US_help/imbreakset.html deleted file mode 100644 index 71d91ff..0000000 --- a/help/en_US/scilab_en_US_help/imbreakset.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imbreakset - - - - - - - - IPCV >> Utilities and Interactive Tools > imbreakset - -

    -

    imbreakset

    -

    Set the break event with Scilab figure

    - - -

    Syntax

    -
    imbreakset()
    - -

    Parameters

    -
    - -

    Description

    -

    This function set the event handle for a figure and listen to the "Esc" key. The global variable "breakloop" is set to true if Esc key detected and break from the loop prematured or break from the infinite loop.

    -

    - -

    Examples

    -
    global breakloop;
    -breakloop = %f;
    -plot(0,0);
    -imbreakset();
    -for cnt = 1:10
    -sleep(500);
    -disp(cnt);
    -if breakloop == %t
    -disp('User Break');
    -break
    -end
    -end
    -imbreakunset();
    - -

    See also

    -
    • imlsusb — List all USB devices connected to PC (linux only)
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imbreakunset.html b/help/en_US/scilab_en_US_help/imbreakunset.html deleted file mode 100644 index c29ea6a..0000000 --- a/help/en_US/scilab_en_US_help/imbreakunset.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imbreakunset - - - - - - - - IPCV >> Utilities and Interactive Tools > imbreakunset - -

    -

    imbreakunset

    -

    Unset the break event with Scilab figure

    - - -

    Syntax

    -
    imbreakunset()
    - -

    Parameters

    -
    - -

    Description

    -

    This function unset the event handle for a figure which has been set by imbreakset

    -

    - -

    Examples

    -
    global breakloop;
    -breakloop = %f;
    -plot(0,0);
    -imbreakset();
    -for cnt = 1:10
    -sleep(500);
    -disp(cnt);
    -if breakloop == %t
    -disp('User Break');
    -break
    -end
    -end
    -imbreakset();
    - -

    See also

    -
    • imlsusb — List all USB devices connected to PC (linux only)
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imcaminfo.html b/help/en_US/scilab_en_US_help/imcaminfo.html deleted file mode 100644 index 93f11a9..0000000 --- a/help/en_US/scilab_en_US_help/imcaminfo.html +++ /dev/null @@ -1,82 +0,0 @@ - - - imcaminfo - - - - - - - - IPCV >> Utilities and Interactive Tools > imcaminfo - -

    -

    imcaminfo

    -

    Show the supported raw resolution for an USB camera (linux only)

    - - -

    Syntax

    -
    out = imcaminfo(dev)
    - -

    Parameters

    -
    dev : -

    USB bus number and device number for the connected device in string

    -
    out : -

    Strings containing the list of supported resolution for the camera

    - -

    Description

    -

    The function show the supported raw resolution for an USB camera connected to the given device and bus numbers(linux only)

    -

    - -

    Examples

    -
    out = imcaminfo('001:005')
    - -

    See also

    -
    • imlsusb — List all USB devices connected to PC (linux only)
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imchoose.html b/help/en_US/scilab_en_US_help/imchoose.html deleted file mode 100644 index f09fd49..0000000 --- a/help/en_US/scilab_en_US_help/imchoose.html +++ /dev/null @@ -1,83 +0,0 @@ - - - imchoose - - - - - - - - IPCV >> Utilities and Interactive Tools > imchoose - -

    -

    imchoose

    -

    Choose a bounding box with mouse

    - - -

    Syntax

    -
    rec2 = imchoose()
    - -

    Parameters

    -
    rec2 : -

    Seletected Bounding Box

    - -

    Description

    -

    This function allows user to select a bounding box interactively using mouse.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/puffin.png"));
    -imshow(S);
    -rec2 = imchoose();
    -title(string(rec2));
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imclose.html b/help/en_US/scilab_en_US_help/imclose.html deleted file mode 100644 index f2e257b..0000000 --- a/help/en_US/scilab_en_US_help/imclose.html +++ /dev/null @@ -1,97 +0,0 @@ - - - imclose - - - -
    - - - - -
    - << imblobprop - - - Morphological Operations - - - imcreatese >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imclose - -

    -

    imclose

    -

    Image closing

    - - -

    Syntax

    -
    imout = imclose(imin,se)
    - -

    Parameters

    -
    imin : -

    Input image

    -
    se : -

    Structure element

    -
    imout : -

    Output image

    - -

    Description

    -

    The function perform closing operation on the source image using the specified structuring element. -This operation is same as obtained by the dilation of an image followed by an erosion. -Useful to remove small holes.(it is assumed that the objects are bright on a dark foreground)

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/morpex.png"));
    -se = imcreatese('ellipse',11,11);
    -S2 = imclose(S,se);
    -imshow(S2);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imcolproc.html b/help/en_US/scilab_en_US_help/imcolproc.html deleted file mode 100644 index 7f09bd1..0000000 --- a/help/en_US/scilab_en_US_help/imcolproc.html +++ /dev/null @@ -1,90 +0,0 @@ - - - imcolproc - - - - - - - - IPCV >> Image Block Processing > imcolproc - -

    -

    imcolproc

    -

    Sliding block processing for an image, with vectorization

    - - -

    Syntax

    -
    y = imblockproc(x,blk,func)
    - -

    Parameters

    -
    x : -

    Source Image

    -
    blk : -

    Block size [m,n]

    -
    func : -

    A function name which provide the processing function. The fucntion

    - -

    Description

    -

    This function is block processing function with sliding blocks, with each -sliding blocks converted to column matrix for faster performance.

    -

    - -

    Examples

    -
    A = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -deff('y=myfunc(x)','y = mean(x,1)');
    -y = imcolproc(A,[9 9],'myfunc');
    -imshow(y);
    - -

    See also

    -
    • imblockproc — Distict block processing for an image
    • -
    • imblockslide — Sliding block processing for an image
    • -
    • im2col — Convert image into series of columns
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imcomplement.html b/help/en_US/scilab_en_US_help/imcomplement.html deleted file mode 100644 index 9b5123c..0000000 --- a/help/en_US/scilab_en_US_help/imcomplement.html +++ /dev/null @@ -1,99 +0,0 @@ - - - imcomplement - - - -
    - - - - -
    - << imadd - - - Image Arithmetic - - - imdivide >> - -
    -
    -
    - - - - IPCV >> Image Arithmetic > imcomplement - -

    -

    imcomplement

    -

    Complement image

    - - -

    Syntax

    -
    imout = imcomplement(im)
    - -

    Parameters

    -
    im : -

    Input image.

    -
    imout : -

    The complement image, which has the same size and class with im .

    - -

    Description

    -

    imcomplement computes the complement image of im. In the output image imout, dark pixels become lighter and light pixels become darker.

    -

    Supported classes: BOOLEAN, INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

    -

    - -

    Examples

    -
    im = [%F, %T];
    -imcomplement(im)
    -
    -im = uint8([0, 50, 100; 150, 200, 250]);
    -imcomplement(im)
    -
    -im = int8([-100, -50, 0; 50, 100, 150]);
    -imcomplement(im)
    -
    -im = [0, 0.2, 0.4; 0.6, 0.8, 1.0];
    -imcomplement(im)
    - -

    See also

    -
    • imabsdiff — Calculate absolute difference of two images
    • -
    • imadd — Add two images or add a constant to an image
    • -
    • imsubtract — Subtract two images or subtract a constant from an image
    • -
    • immultiply — Multiply two images or multiply an image by an constant.
    • -
    • imdivide — Divide two images or divide an image by an constant.
    • -
    • imlincomb — Linear combination of images
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imadd - - - Image Arithmetic - - - imdivide >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imcontour2label.html b/help/en_US/scilab_en_US_help/imcontour2label.html deleted file mode 100644 index 7436dd9..0000000 --- a/help/en_US/scilab_en_US_help/imcontour2label.html +++ /dev/null @@ -1,93 +0,0 @@ - - - imcontour2label - - - - - - - - IPCV >> Structural Analysis and Shape Descriptors > imcontour2label - -

    -

    imcontour2label

    -

    Create a labeled image from the contours list

    - - -

    Syntax

    -
    So = imcontour2label(S,Sc)
    - -

    Parameters

    -
    S : -

    Input image

    -
    Sc : -

    Contours list

    -
    So : -

    Output labeled image

    - -

    Description

    -

    This function used to create a labeled image from a contours list

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
    -Sbw = im2bw(S,0.5);
    -Sc = imfindContours(Sbw);
    -So = imcontour2label(S,Sc);
    -imshow(So,rainbowcolormap(size(Sc)));
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imconvexHull.html b/help/en_US/scilab_en_US_help/imconvexHull.html deleted file mode 100644 index b5529c1..0000000 --- a/help/en_US/scilab_en_US_help/imconvexHull.html +++ /dev/null @@ -1,93 +0,0 @@ - - - imconvexHull - - - - - - - - IPCV >> Structural Analysis and Shape Descriptors > imconvexHull - -

    -

    imconvexHull

    -

    Finds the convex hull of a point set.

    - - -

    Syntax

    -
    H = imconvexHull(contours[, cw[, ind]])
    - -

    Parameters

    -
    contours : -

    Contours in list

    -
    cw : -

    Return points in clockwise or counter-clockwise direction, 0 as CCW, 1 as CW

    -
    ind : -

    Return points in image rectangular coordinate pairs or the indices of contours, 0 to return coor pairs, 1 to return indexes

    -
    H : -

    Convex hulls in list in correspond to the contours

    - -

    Description

    -

    The functions find the convex hull of all the contours in list using the Sklansky's algorithm.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/hand.jpg"));
    -Sbw = im2bw(~S,0.5);
    -imshow(Sbw);
    -Sc = imfindContours(Sbw);
    -H = imconvexHull(Sc);
    -implotContours(Sbw,lstcat(Sc, H),5)
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imconvexityDefects.html b/help/en_US/scilab_en_US_help/imconvexityDefects.html deleted file mode 100644 index f1ed5fb..0000000 --- a/help/en_US/scilab_en_US_help/imconvexityDefects.html +++ /dev/null @@ -1,95 +0,0 @@ - - - imconvexityDefects - - - - - - - - IPCV >> Structural Analysis and Shape Descriptors > imconvexityDefects - -

    -

    imconvexityDefects

    -

    Finds the convexity defects of a contour.

    - - -

    Syntax

    -
    D = imconvexityDefects(contours, hullinds)
    - -

    Parameters

    -
    contours : -

    Contours in list

    -
    hullinds : -

    Indices of contours which representing convex hulls in list of each contours.

    -
    D : -

    The output vector of convexity defects.(start_index, end_index, farthest_pt_index, fixpt_depth)

    - -

    Description

    -

    The functions finds the convexity defects of a contour.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/star.png"));
    -Sbw = im2bw(S,0.5);
    -Sc = imfindContours(Sbw);
    -H = imconvexHull(Sc,0,1);
    -D = imconvexityDefects(Sc,H)
    -d = D(1);
    -f = Sc(1)(d(:,3),:)
    -[cart_ff] = rect2cart(size(S)(1:2), f);
    -imshow(Sbw);
    -plot(cart_ff(:,1),cart_ff(:,2),'g*')
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imcreatechecker.html b/help/en_US/scilab_en_US_help/imcreatechecker.html deleted file mode 100644 index 92df555..0000000 --- a/help/en_US/scilab_en_US_help/imcreatechecker.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imcreatechecker - - - - - - - - IPCV >> Image Reading, Display and Exploration > imcreatechecker - -

    -

    imcreatechecker

    -

    Detect features from an image with FAST algorithm. Usually used for corner features.

    - - -

    Syntax

    -
    zz = imcreatechecker()
    -zz = imcreatechecker(n)
    -zz = imcreatechecker(n,col)
    -zz = imcreatechecker(n,col,tone)
    - -

    Parameters

    -
    n : -

    Power of 2, to create the checker box with size of 2^n. Default value is 8

    -
    col : -

    Number of columns for the checker board. Default value is 8

    -
    tone : -

    in matrix [a b], which is the in starting and ending "grayness" of the white cells. Default value is [1 1].

    -
    imout : -

    Output image

    - -

    Description

    -

    This function used to detect the features of an image using FAST method.Good for corner detection.

    -

    - -

    Examples

    -
    S = imcreatechecker(8,8,[1 0.5]);
    -imshow(S);
    - -

    See also

    -
    • imread — Reads image file - Add modes support
    • -
    • imwrite — Write image to file
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imcreatese.html b/help/en_US/scilab_en_US_help/imcreatese.html deleted file mode 100644 index d4e4d27..0000000 --- a/help/en_US/scilab_en_US_help/imcreatese.html +++ /dev/null @@ -1,99 +0,0 @@ - - - imcreatese - - - -
    - - - - -
    - << imclose - - - Morphological Operations - - - imdilate >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imcreatese - -

    -

    imcreatese

    -

    Creating Structure Element for Morphological operation

    - - -

    Syntax

    -
    se = imcreatese(setype,r,c)
    - -

    Parameters

    -
    setype : -

    Type of structure element, currently support 'rect', 'ellipse' and 'cross'

    -
    r : -

    Number of rows

    -
    c : -

    Number of colomns

    -
    se : -

    Created structure element

    - -

    Description

    -

    The function constructs and returns the structuring element that can be -further passed to any morphology filter. You can also construct an arbitrary -mask yourself and use it as the structuring element

    -

    - -

    Examples

    -
    a = zeros(10,10);
    -a(4:7,4:7) = 1;
    -se = imcreatese('rect',3,3);
    -b = imdilate(a,se);
    -disp(b);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imclose - - - Morphological Operations - - - imdilate >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imcrop.html b/help/en_US/scilab_en_US_help/imcrop.html deleted file mode 100644 index 028386b..0000000 --- a/help/en_US/scilab_en_US_help/imcrop.html +++ /dev/null @@ -1,88 +0,0 @@ - - - imcrop - - - - - - - - IPCV >> Spatial Transformations > imcrop - -

    -

    imcrop

    -

    Crop image

    - - -

    Syntax

    -
    subim = imcrop(im, rect)
    - -

    Parameters

    -
    im : -

    An image, which can be one channel or three channel image.

    -
    rect : -

    rect=[x, y, width, height] is a vector. (x, y) is the top-left corner of the rentangle.

    -
    subim : -

    subim is the sub-region of the image im .

    - -

    Description

    -

    Crop image at regin rect to subim.

    -

    - -

    Examples

    -
    im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
    -subim = imcrop(im, [20, 30, 200, 300]);
    -imshow(subim);
    - -

    See also

    -
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imcropm.html b/help/en_US/scilab_en_US_help/imcropm.html deleted file mode 100644 index d388f7f..0000000 --- a/help/en_US/scilab_en_US_help/imcropm.html +++ /dev/null @@ -1,85 +0,0 @@ - - - imcropm - - - -
    - - - - -
    - << imcrop - - - Spatial Transformations - - - impyramid >> - -
    -
    -
    - - - - IPCV >> Spatial Transformations > imcropm - -

    -

    imcropm

    -

    Crop an image using mouse selection

    - - -

    Syntax

    -
    y = imcropm(S)
    - -

    Parameters

    -
    S : -

    Source Image

    -
    y : -

    Subimage

    - -

    Description

    -

    This function allows user to select the region of interest interactively -using mouse.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/puffin.png"));
    -J = imcropm(S);
    -scf; imshow(J);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imcrop - - - Spatial Transformations - - - impyramid >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imdct.html b/help/en_US/scilab_en_US_help/imdct.html deleted file mode 100644 index f80d806..0000000 --- a/help/en_US/scilab_en_US_help/imdct.html +++ /dev/null @@ -1,85 +0,0 @@ - - - imdct - - - -
    - - - - -
    - << Image Transforms - - - Image Transforms - - - imdistransf >> - -
    -
    -
    - - - - IPCV >> Image Transforms > imdct - -

    -

    imdct

    -

    Discrete cosine transform (DCT)

    - - -

    Syntax

    -
    y = imdct(x);
    - -

    Parameters

    -
    x : -

    Input Matrix (1D or 2D)

    -
    y : -

    Output Matrix same dimension with x

    - -

    Description

    -

    Performs a forward discrete Cosine transform of 1D or 2D array.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/measure_gray.jpg"));
    -y = imdct(S);
    -imshow(y,jetcolormap(256));
    - -

    See also

    -
    • imidct — Inverse discrete cosine transform (DCT)
    • -
    • fft2pad — Pad smaller matrix with zeros to the given size before transformation.
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdeconvl2.html b/help/en_US/scilab_en_US_help/imdeconvl2.html deleted file mode 100644 index fea0ab3..0000000 --- a/help/en_US/scilab_en_US_help/imdeconvl2.html +++ /dev/null @@ -1,101 +0,0 @@ - - - imdeconvl2 - - - - - - - - IPCV >> Image Enhancement and Restoration > imdeconvl2 - -

    -

    imdeconvl2

    -

    Deconvolution with L2 Regularization

    - - -

    Syntax

    -
    imout = imdeconvl2(imin,psf,lambda)
    - -

    Parameters

    -
    imin : -

    Source Image

    -
    f : -

    Blur function

    -
    lamda : -

    Regularization parameter

    -
    imout : -

    Deblurred Image

    - -

    Description

    -

    Deconvolution is obtained by dividing the Fourier transform of : -

    $[f^\star(\omega) = \frac{\hat y(\omega)}{\hat h(\omega)} = \hat f_0(\omega) + \hat w(\omega)/{\hat h(\omega)}]$

    -To avoid this explosion, we consider a simple regularization. -

    $[f^{\star} = \text{argmin}_f \: \|y-\Phi f\|^2 + \lambda \|f\|^2]$

    -Since the filtering is diagonalized over Fourier, the solution is simply computed over the Fourier domain as: -

    $[\hat f^\star(\omega) = \frac{\hat y(\omega) \hat h(\omega)}{ \|\hat h(\omega)\|^2 + \lambda }]$

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -S = im2double(S);
    -h = fspecial('motion',25,45);
    -S2 = imfilter(S,h,'circular');
    -imshow(S2);
    -S3 = imdeconvl2(S2,h,0);
    -scf;imshow(S3);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. Advanced Signal, Image and Surface Processing, Ceremade, Université Paris-Dauphine

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdeconvsobolev.html b/help/en_US/scilab_en_US_help/imdeconvsobolev.html deleted file mode 100644 index 4b42d78..0000000 --- a/help/en_US/scilab_en_US_help/imdeconvsobolev.html +++ /dev/null @@ -1,103 +0,0 @@ - - - imdeconvsobolev - - - - - - - - IPCV >> Image Enhancement and Restoration > imdeconvsobolev - -

    -

    imdeconvsobolev

    -

    Deconvolution by Sobolev Regularization

    - - -

    Syntax

    -
    imout = imdeconvsobolev(imin,psf,lambda)
    - -

    Parameters

    -
    imin : -

    Source Image

    -
    f : -

    Blur function

    -
    lamda : -

    Regularization parameter

    -
    imout : -

    Deblurred Image

    - -

    Description

    -

    L2 regularization did not perform any denoising. To remove some noise, -we can penalize high frequencies using Sobolev regularization (quadratic grow).

    -

    The Sobolev prior reads (note the conversion from spacial domain to Fourier domain) -

    $[J(f) = \sum_x \|\nabla f(x)\|^2 = \sum_{\omega} S(\omega) \|\hat f(\omega)\|^2 ] where S(\omega)=\|\omega\|^2)$

    -

    Since this prior can be written over the Fourier domain, one can compute the -solution to the deblurring with Sobolev prior simply with the Fourier coefficients: -

    $[\hat f^\star(\omega) = \frac{\hat y(\omega) \hat h(\omega)}{ \|\hat h(\omega)\|^2 + \lambda S(\omega) }]$

    -Compute the Sobolev prior penalty S (rescale to [0,1]).

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -S = im2double(S);
    -h = fspecial('motion',25,45);
    -S2 = imfilter(S,h,'circular');
    -imshow(S2);
    -S3 = imdeconvsobolev(S2,h,0);
    -scf;imshow(S3);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. Advanced Signal, Image and Surface Processing, Ceremade, Université Paris-Dauphine

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdeconvwiener.html b/help/en_US/scilab_en_US_help/imdeconvwiener.html deleted file mode 100644 index 985576f..0000000 --- a/help/en_US/scilab_en_US_help/imdeconvwiener.html +++ /dev/null @@ -1,106 +0,0 @@ - - - imdeconvwiener - - - - - - - - IPCV >> Image Enhancement and Restoration > imdeconvwiener - -

    -

    imdeconvwiener

    -

    Deconvolution with Wiener method

    - - -

    Syntax

    -
    imout = imdeconvl2(imin,psf,lambda)
    - -

    Parameters

    -
    imin : -

    Source Image

    -
    f : -

    Blur function

    -
    noisefct : -

    Noise Factor

    -
    imout : -

    Deblurred Image

    - -

    Description

    -

    In mathematics, Wiener deconvolution is an application of the Wiener filter -to the noise problems inherent in deconvolution. It works in the frequency domain, -attempting to minimize the impact of deconvoluted noise at frequencies which -have a poor signal-to-noise ratio. -The Wiener deconvolution method has widespread use in image deconvolution applications, -as the frequency spectrum of most visual images is fairly well behaved and may be estimated easily. -Wiener deconvolution is named after Norbert Wiener. -The Wiener deconvolution filter provides such a g(t) -The filter is most easily described in the frequency domain: -

    $\ G(f) = \frac{H(f) S(f)}{ \|H(f)\|^2 S(f)+ N(f) }\$

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -S = im2double(S);
    -h = fspecial('motion',25,45);
    -S2 = imfilter(S,h,'circular');
    -imshow(S2);
    -S3 = imdeconvwiener(S2,h,0);
    -scf;imshow(S3);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. Wikipedia : http://en.wikipedia.org/wiki/Wiener_deconvolution

    -

    2. OpenCV Example : http://gigadom.wordpress.com/category/opencv/

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdecorrstretch.html b/help/en_US/scilab_en_US_help/imdecorrstretch.html deleted file mode 100644 index 8139091..0000000 --- a/help/en_US/scilab_en_US_help/imdecorrstretch.html +++ /dev/null @@ -1,89 +0,0 @@ - - - imdecorrstretch - - - - - - - - IPCV >> Image Enhancement and Restoration > imdecorrstretch - -

    -

    imdecorrstretch

    -

    Apply decorrelation stretch to multichannel image

    - - -

    Syntax

    -
    S = imdecorrstretch(I, tol, useCorr)
    - -

    Parameters

    -
    I : -

    Input image

    -
    tol : -

    The fraction of the image to saturate at low and high intensities. If tol is an scalar, high intensity is 1 - tol.

    -
    useCorr : -

    1 to use correlation method, 0 to use covariance method.

    -
    S : -

    Stretched output image

    - -

    Description

    -

    The primary purpose of decorrelation stretch is visual enhancement. Decorrelation stretching is a way to enhance the color differences in an image.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png'));
    -S2 = imdecorrstretch(S);
    -subplot(121);imshow(S);
    -subplot(122);imshow(S2);
    - -

    See also

    -
    • imadjust — Adjust the intensity of an image from given source histogram range to the destination histogram range
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdestroy.html b/help/en_US/scilab_en_US_help/imdestroy.html deleted file mode 100644 index c75597e..0000000 --- a/help/en_US/scilab_en_US_help/imdestroy.html +++ /dev/null @@ -1,85 +0,0 @@ - - - imdestroy - - - - - - - - IPCV >> Image Reading, Display and Exploration > imdestroy - -

    -

    imdestroy

    -

    Destroy graphic window created using imdisplay (highgui).

    - - -

    Syntax

    -
    imdestroy(windowname)
    - -

    Parameters

    -
    windowname : -

    Name of the opened window.

    - -

    Description

    -

    This is a special function to destroy the graphic window created using imdisplay.

    -

    - -

    Examples

    -
    im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
    -imdisplay(im,'MyImage');
    -imdestroy('MyImage');
    - -

    See also

    -
    • imread — Reads image file - Add modes support
    • -
    • imwrite — Write image to file
    • -
    • imdisplay — Display image using highgui for faster frame rate
    • -
    • imdestroyall — Destroy ALL graphic window created using imdisplay (highgui).
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdestroyall.html b/help/en_US/scilab_en_US_help/imdestroyall.html deleted file mode 100644 index bfd1fef..0000000 --- a/help/en_US/scilab_en_US_help/imdestroyall.html +++ /dev/null @@ -1,84 +0,0 @@ - - - imdestroyall - - - - - - - - IPCV >> Image Reading, Display and Exploration > imdestroyall - -

    -

    imdestroyall

    -

    Destroy ALL graphic window created using imdisplay (highgui).

    - - -

    Syntax

    -
    imdestroyall
    - -

    Parameters

    -
    - -

    Description

    -

    This is a special function to destroy ALL the graphic window created using imdisplay.

    -

    - -

    Examples

    -
    im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
    -imdisplay(im,'MyImage');
    -imdestroy('MyImage');
    - - - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdetect_BRISK.html b/help/en_US/scilab_en_US_help/imdetect_BRISK.html deleted file mode 100644 index f8482d6..0000000 --- a/help/en_US/scilab_en_US_help/imdetect_BRISK.html +++ /dev/null @@ -1,121 +0,0 @@ - - - imdetect_BRISK - - - - - - - - IPCV >> Feature Detection, Description and Matching > imdetect_BRISK - -

    -

    imdetect_BRISK

    -

    Detect features from an image with BRISK algorithm

    - - -

    Syntax

    -
    fobj = imdetect_BRISK(im [,thresh [,octaves [,patternScale]]]);
    - -

    Parameters

    -
    im : -

    Input image

    -
    thresh : -

    FAST/AGAST detection threshold score. Default value is 30.

    -
    octaves : -

    detection octaves. Use 0 to do single scale. Default value is 3.

    -
    patternScale : -

    apply this scale to the pattern used for sampling the neighbourhood of a keypoint. Default value is 1.0.

    -
    fobj : -

    Features object contains following fields -

    -
    type : -

    Type of features

    -
    n : -

    Numbers of detected features

    -
    x : -

    Coordinates of the detected features - X

    -
    y : -

    Coordinates of the detected features - Y

    -
    size : -

    Size of detected features

    -
    angle : -

    keypoint orientation

    -
    response : -

    The response by which the most strong keypoints have been selected.

    -
    octave : -

    pyramid octave in which the keypoint has been detected

    -
    class_id : -

    object id

    - -

    Description

    -

    This function used to detect the features of an image using BRISK method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,8,[1 0.5]);
    -fobj = imdetect_BRISK(S);
    -imshow(S); plotfeature(fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdetect_FAST.html b/help/en_US/scilab_en_US_help/imdetect_FAST.html deleted file mode 100644 index b6350a4..0000000 --- a/help/en_US/scilab_en_US_help/imdetect_FAST.html +++ /dev/null @@ -1,122 +0,0 @@ - - - imdetect_FAST - - - - - - - - IPCV >> Feature Detection, Description and Matching > imdetect_FAST - -

    -

    imdetect_FAST

    -

    Detect features from an image with FAST algorithm. Usually used for corner features.

    - - -

    Syntax

    -
    fobj = imdetect_FAST(im [,th [,nmS [,nb]]]);
    - -

    Parameters

    -
    im : -

    Input image

    -
    th : -

    threshold on difference between intensity of the central pixel and pixels of a circle around this pixel. Default value is 1.

    -
    nms : -

    nonmaxSuppression, if 1, non-maximum suppression is applied to detected corners (keypoints). Default value is 1.

    -
    nb : -

    one of the three neighborhoods, TYPE_5_8 = 0, TYPE_7_12 = 1, TYPE_9_16 = 2. Default value is 2.

    -
    fobj : -

    Features object contains following fields -

    -
    type : -

    Type of features

    -
    n : -

    Numbers of detected features

    -
    x : -

    Coordinates of the detected features - X

    -
    y : -

    Coordinates of the detected features - Y

    -
    size : -

    Size of detected features

    -
    angle : -

    keypoint orientation

    -
    response : -

    The response by which the most strong keypoints have been selected.

    -
    octave : -

    pyramid octave in which the keypoint has been detected

    -
    class_id : -

    object id

    - -

    Description

    -

    This function used to detect the features of an image using FAST method.Good for corner detection.

    -

    - -

    Examples

    -
    S = imcreatechecker(8,8,[1 0.5]);
    -fobj = imdetect_FAST(S);
    -imshow(S); plotfeature(fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -

    2. Rosten. Machine Learning for High-speed Corner Detection, 2006.

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdetect_GFTT.html b/help/en_US/scilab_en_US_help/imdetect_GFTT.html deleted file mode 100644 index 871f9c0..0000000 --- a/help/en_US/scilab_en_US_help/imdetect_GFTT.html +++ /dev/null @@ -1,125 +0,0 @@ - - - imdetect_GFTT - - - - - - - - IPCV >> Feature Detection, Description and Matching > imdetect_GFTT - -

    -

    imdetect_GFTT

    -

    Detect features from an image with GFTT algorithm

    - - -

    Syntax

    -
    fobj = imdetect_GFTT(im [,maxCorner [,qualityLevel [,minDistance [,blockSize [,k]]]]]);
    - -

    Parameters

    -
    im : -

    Input image

    -
    maxCorner : -

    Maximum corders to be returned. Default value is 1000.

    -
    qualityLevel : -

    Parameter characterizing the minimal accepted quality of image corners. Default value is 0.01.

    -
    minDistance : -

    Minimum possible Euclidean distance between the returned corners. Default value is 1.

    -
    blockSize : -

    Size of an average block for computing a derivative covariation matrix over each pixel neighborhood. Default value is 3.

    -
    k : -

    Free parameter of the Harris detector. Default value is 0.04.

    -
    fobj : -

    Features object contains following fields -

    -
    type : -

    Type of features

    -
    n : -

    Numbers of detected features

    -
    x : -

    Coordinates of the detected features - X

    -
    y : -

    Coordinates of the detected features - Y

    -
    size : -

    Size of detected features

    -
    angle : -

    keypoint orientation

    -
    response : -

    The response by which the most strong keypoints have been selected.

    -
    octave : -

    pyramid octave in which the keypoint has been detected

    -
    class_id : -

    object id

    - -

    Description

    -

    This function used to detect the features of an image using GFTT method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,8,[1 0.5]);
    -fobj = imdetect_GFTT(S);
    -imshow(S); plotfeature(fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdetect_MSER.html b/help/en_US/scilab_en_US_help/imdetect_MSER.html deleted file mode 100644 index 5a1d2aa..0000000 --- a/help/en_US/scilab_en_US_help/imdetect_MSER.html +++ /dev/null @@ -1,133 +0,0 @@ - - - imdetect_MSER - - - - - - - - IPCV >> Feature Detection, Description and Matching > imdetect_MSER - -

    -

    imdetect_MSER

    -

    Detect features from an image with MSER algorithm

    - - -

    Syntax

    -
    fobj = imdetect_MSER(im [,delta [,min_area [,max_area [,max_variation [,min_diversity [,max_evolution [,area_threshold [,min_margin [,edge_blur_size]]]]]]]]]);
    - -

    Parameters

    -
    im : -

    Input image

    -
    delta: -

    Compares (sizei - sizei-delta)/sizei-delta. Default value is 5.

    -
    min_area : -

    Prune the area which smaller than minArea. Default value is 60.

    -
    max_area : -

    Prune the area which bigger than maxArea. Default value is 14400.

    -
    max_variation : -

    Prune the area have simliar size to its children. Default value is 0.25.

    -
    min_diversity : -

    For color image, trace back to cut off mser with diversity less than min_diversity. Default value is 0.2.

    -
    max_evolution : -

    For color image, the evolution steps. Default value is 200.

    -
    area_threshold : -

    For color image, the area threshold to cause re-initialize. Default value is 1.01.

    -
    min_margin : -

    For color image, ignore too small margin. Default value is 0.003.

    -
    edge_blur_size : -

    For color image, the aperture size for edge blur. Default value is 5.

    -
    fobj : -

    Features object contains following fields -

    -
    type : -

    Type of features

    -
    n : -

    Numbers of detected features

    -
    x : -

    Coordinates of the detected features - X

    -
    y : -

    Coordinates of the detected features - Y

    -
    size : -

    Size of detected features

    -
    angle : -

    keypoint orientation

    -
    response : -

    The response by which the most strong keypoints have been selected.

    -
    octave : -

    pyramid octave in which the keypoint has been detected

    -
    class_id : -

    object id

    - -

    Description

    -

    This function used to detect the features of an image using MSER method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,8,[1 0.5]);
    -fobj = imdetect_MSER(S,1);
    -imshow(S); plotfeature(fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdetect_ORB.html b/help/en_US/scilab_en_US_help/imdetect_ORB.html deleted file mode 100644 index ed28a1b..0000000 --- a/help/en_US/scilab_en_US_help/imdetect_ORB.html +++ /dev/null @@ -1,132 +0,0 @@ - - - imdetect_ORB - - - - - - - - IPCV >> Feature Detection, Description and Matching > imdetect_ORB - -

    -

    imdetect_ORB

    -

    Detect features from an image with ORB algorithm

    - - -

    Syntax

    -
    fobj = imdetect_ORB(im [,nfeatures [,scaleFactor [,nlevels [,edgeThreshold [,firstLevel [,WTA_K [,scoreType [,patchSize]]]]]]]]);
    - -

    Parameters

    -
    im : -

    Input image

    -
    nfeatures: -

    The maximum number of features to returned. Default value is 500.

    -
    scaleFactor : -

    Pyramid decimation ratio, greater than 1. Default value is 1.2.

    -
    nlevels : -

    The number of pyramid levels. Default value is 8.

    -
    edgeThreshold : -

    This is size of the border where the features are not detected. It should roughly match the patchSize parameter. Default value is 31.

    -
    firstLevel : -

    It should be 0 in the current implementation. Default value is 0.

    -
    WTA_K : -

    The number of points that produce each element of the oriented BRIEF descriptor. Default value is 2.

    -
    scoreType : -

    The default HARRIS_SCORE means that Harris algorithm is used to rank features. Default value is 0.

    -
    patchSize : -

    size of the patch used by the oriented BRIEF descriptor. Default value is 31.

    -
    fobj : -

    Features object contains following fields -

    -
    type : -

    Type of features

    -
    n : -

    Numbers of detected features

    -
    x : -

    Coordinates of the detected features - X

    -
    y : -

    Coordinates of the detected features - Y

    -
    size : -

    Size of detected features

    -
    angle : -

    keypoint orientation

    -
    response : -

    The response by which the most strong keypoints have been selected.

    -
    octave : -

    pyramid octave in which the keypoint has been detected

    -
    class_id : -

    object id

    - -

    Description

    -

    This function used to detect the features of an image using ORB method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,8,[1 0.5]);
    -fobj = imdetect_ORB(S);
    -imshow(S); plotfeature(fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -

    2. Ethan Rublee, Vincent Rabaud, Kurt Konolige, Gary R. Bradski: ORB: An efficient alternative to SIFT or SURF. ICCV 2011: 2564-2571.

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdetect_SIFT.html b/help/en_US/scilab_en_US_help/imdetect_SIFT.html deleted file mode 100644 index 1873f60..0000000 --- a/help/en_US/scilab_en_US_help/imdetect_SIFT.html +++ /dev/null @@ -1,125 +0,0 @@ - - - imdetect_SIFT - - - - - - - - IPCV >> Feature Detection, Description and Matching > imdetect_SIFT - -

    -

    imdetect_SIFT

    -

    Detect features from an image with SIFT algorithm

    - - -

    Syntax

    -
    fobj = imdetect_SIFT(im [,nfeatures [,nOctaveLayers [,contrastThreshold [,edgeThreshold [,sigma]]]]])
    - -

    Parameters

    -
    im : -

    Input image

    -
    nfeatures : -

    The number of best features to retain. The features are ranked by their scores. Default value is 0.

    -
    nOctaveLayers : -

    The number of layers in each octave. Default value is 3.

    -
    contrastThreshold : -

    The contrast threshold used to filter out weak features in semi-uniform (low-contrast) regions. Default value is 0.04.

    -
    edgeThreshold : -

    The threshold used to filter out edge-like features. Default value is 10.

    -
    sigma : -

    The sigma of the Gaussian applied to the input image at the octave #0. Default value is 1.6.

    -
    fobj : -

    Features object contains following fields -

    -
    type : -

    Type of features

    -
    n : -

    Numbers of detected features

    -
    x : -

    Coordinates of the detected features - X

    -
    y : -

    Coordinates of the detected features - Y

    -
    size : -

    Size of detected features

    -
    angle : -

    keypoint orientation

    -
    response : -

    The response by which the most strong keypoints have been selected.

    -
    octave : -

    pyramid octave in which the keypoint has been detected

    -
    class_id : -

    object id

    - -

    Description

    -

    This function used to detect the features of an image using SIFT method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,8,[1 0.5]);
    -fobj = imdetect_SIFT(S);
    -imshow(S); plotfeature(fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdetect_STAR.html b/help/en_US/scilab_en_US_help/imdetect_STAR.html deleted file mode 100644 index 19cd687..0000000 --- a/help/en_US/scilab_en_US_help/imdetect_STAR.html +++ /dev/null @@ -1,125 +0,0 @@ - - - imdetect_STAR - - - - - - - - IPCV >> Feature Detection, Description and Matching > imdetect_STAR - -

    -

    imdetect_STAR

    -

    Detect features from an image with STAR algorithm

    - - -

    Syntax

    -
    fobj = imdetect_STAR(im [,maxSize [,responseThreshold [,lineThresholdProjected [,lineThresholdBinarized [,suppressNonmaxSize]]]]]);
    - -

    Parameters

    -
    im : -

    Input image

    -
    maxSize : -

    Maximum size of the features. Default value is 16.

    -
    responseThreshold : -

    Response threshold. Default value is 30.

    -
    lineThresholdProjected : -

    Default value is 10.

    -
    lineThresholdBinarized : -

    Default value is 8.

    -
    suppressNonmaxSize : -

    Default value is 5.

    -
    fobj : -

    Features object contains following fields -

    -
    type : -

    Type of features

    -
    n : -

    Numbers of detected features

    -
    x : -

    Coordinates of the detected features - X

    -
    y : -

    Coordinates of the detected features - Y

    -
    size : -

    Size of detected features

    -
    angle : -

    keypoint orientation

    -
    response : -

    The response by which the most strong keypoints have been selected.

    -
    octave : -

    pyramid octave in which the keypoint has been detected

    -
    class_id : -

    object id

    - -

    Description

    -

    This function used to detect the features of an image using STAR method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,8,[1 0.5]);
    -fobj = imdetect_STAR(S);
    -imshow(S); plotfeature(fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdetect_SURF.html b/help/en_US/scilab_en_US_help/imdetect_SURF.html deleted file mode 100644 index 15e4c90..0000000 --- a/help/en_US/scilab_en_US_help/imdetect_SURF.html +++ /dev/null @@ -1,125 +0,0 @@ - - - imdetect_SURF - - - - - - - - IPCV >> Feature Detection, Description and Matching > imdetect_SURF - -

    -

    imdetect_SURF

    -

    Detect features from an image with SURF algorithm

    - - -

    Syntax

    -
    fobj = imdetect_SURF(im [,hessianThreshold [,nOctaves [,nOctaveLayers [,extended [,upright]]]]])
    - -

    Parameters

    -
    im : -

    Input image

    -
    hessianThreshold : -

    Threshold for hessian keypoint detector used in SURF. Default value is 1000.

    -
    nOctaves : -

    Number of pyramid octaves the keypoint detector will use. Default value is 4.

    -
    nOctaveLayers : -

    Number of octave layers within each octave. Default value is 2.

    -
    extended : -

    Extended descriptor flag. Default value is 1.

    -
    upright : -

    Up-right or rotated features flag. Default value is 0.

    -
    fobj : -

    Features object contains following fields -

    -
    type : -

    Type of features

    -
    n : -

    Numbers of detected features

    -
    x : -

    Coordinates of the detected features - X

    -
    y : -

    Coordinates of the detected features - Y

    -
    size : -

    Size of detected features

    -
    angle : -

    keypoint orientation

    -
    response : -

    The response by which the most strong keypoints have been selected.

    -
    octave : -

    pyramid octave in which the keypoint has been detected

    -
    class_id : -

    object id

    - -

    Description

    -

    This function used to detect the features of an image using SURF method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,8,[1 0.5]);
    -fobj = imdetect_SURF(S);
    -imshow(S); plotfeature(fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdetectobjects.html b/help/en_US/scilab_en_US_help/imdetectobjects.html deleted file mode 100644 index 22e1b6d..0000000 --- a/help/en_US/scilab_en_US_help/imdetectobjects.html +++ /dev/null @@ -1,98 +0,0 @@ - - - imdetectobjects - - - -
    - - - - -
    - << Object Detection - - - Object Detection - - - Object Tracking >> - -
    -
    -
    - - - - IPCV >> Object Detection > imdetectobjects - -

    -

    imdetectobjects

    -

    Detect Objects In an Image with Cascade Classification

    - - -

    Syntax

    -
    r = imdetectobjects(S,cfn)
    -r = imdetectobjects(S,cfn,fac)
    -r = imdetectobjects(S,cfn,fac,minNB)
    -r = imdetectobjects(S,cfn,fac,minNB,minSz)
    -r = imdetectobjects(S,cfn,fac,minNB,minSz,maxSz)
    - -

    Parameters

    -
    S : -

    Source image.

    -
    cfn : -

    Classifier file name, in xml format.

    -
    fac : -

    Parameter specifying how much the image size is reduced at each image scale. Default value is 1.1

    -
    minNB : -

    Parameter specifying how many neighbors each candidate rectangle should have to retain it. Default value is 3

    -
    minSz : -

    Minimum possible object size. Objects smaller than that are ignored. In [w h] format. Default value is [30 30]

    -
    maxSz : -

    Maximum possible object size. Objects larger than that are ignored. In [w h] format. Default value not set will be unlimited

    - -

    Description

    -

    imdetectobjects Detects objects of different sizes in the input image. The detected objects are returned as a list of rectangles.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/people2.jpg"));
    -cfn = fullpath(getIPCVpath() + "/demos/haarcascade_frontalface_alt.xml");
    -r = imdetectobjects(S,cfn);
    -imshow(S);
    -imrects(r,[0 255 0]);
    - -

    See also

    -
    • imrects — Draw Bounding Boxes on An Image
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdilate.html b/help/en_US/scilab_en_US_help/imdilate.html deleted file mode 100644 index f05be90..0000000 --- a/help/en_US/scilab_en_US_help/imdilate.html +++ /dev/null @@ -1,97 +0,0 @@ - - - imdilate - - - -
    - - - - -
    - << imcreatese - - - Morphological Operations - - - imerode >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imdilate - -

    -

    imdilate

    -

    Image dilation

    - - -

    Syntax

    -
    imout = imdilate(imin,se)
    - -

    Parameters

    -
    imin : -

    Input image

    -
    se : -

    Structure element

    -
    imout : -

    Output image

    - -

    Description

    -

    The function dilates the source image using the specified structuring element -that determines the shape of a pixel neighborhood over which the maximum is taken.

    -

    - -

    Examples

    -
    a = zeros(10,10);
    -a(4:7,4:7) = 1;
    -se = imcreatese('rect',3,3);
    -b = imdilate(a,se);
    -disp(b);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdisplay.html b/help/en_US/scilab_en_US_help/imdisplay.html deleted file mode 100644 index b19cf1d..0000000 --- a/help/en_US/scilab_en_US_help/imdisplay.html +++ /dev/null @@ -1,86 +0,0 @@ - - - imdisplay - - - - - - - - IPCV >> Image Reading, Display and Exploration > imdisplay - -

    -

    imdisplay

    -

    Display image using highgui for faster frame rate

    - - -

    Syntax

    -
    imdisplay(im, wn)
    - -

    Parameters

    -
    im : -

    Input image which should be in RGB format.

    -
    wn : -

    Graphic window name to differentiate one from another.

    - -

    Description

    -

    This is a special function to display the sequences of images from webcam for better speed. This graphic window must be close by : 1. Pressing Esc key with the window on focus. 2. Calling imdestroy(windowname)

    -

    - -

    Examples

    -
    im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
    -imdisplay(im,'MyImage');
    -imdestroy('MyImage');
    - -

    See also

    -
    • imread — Reads image file - Add modes support
    • -
    • imdestroy — Destroy graphic window created using imdisplay (highgui).
    • -
    • imdestroyall — Destroy ALL graphic window created using imdisplay (highgui).
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdistline.html b/help/en_US/scilab_en_US_help/imdistline.html deleted file mode 100644 index 5e37606..0000000 --- a/help/en_US/scilab_en_US_help/imdistline.html +++ /dev/null @@ -1,83 +0,0 @@ - - - imdistline - - - -
    - - - - -
    - << imchoose - - - Utilities and Interactive Tools - - - imlsusb >> - -
    -
    -
    - - - - IPCV >> Utilities and Interactive Tools > imdistline - -

    -

    imdistline

    -

    Measure distance between 2 selected points in pixels.

    - - -

    Syntax

    -
    dist = imdistline()
    - -

    Parameters

    -
    dist : -

    Computed distance

    - -

    Description

    -

    This function allows the user to select 2 points on the current figure and measure the distance between 2 points.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/balloons.png"));
    -imshow(S);
    -dist = imdistline();
    - -

    See also

    -
    • impixel — Return selected pixel coordinates and values
    • -
    • improfile — Return profiles for the selected 2 points
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdistransf.html b/help/en_US/scilab_en_US_help/imdistransf.html deleted file mode 100644 index b1766de..0000000 --- a/help/en_US/scilab_en_US_help/imdistransf.html +++ /dev/null @@ -1,97 +0,0 @@ - - - imdistransf - - - -
    - - - - -
    - << imdct - - - Image Transforms - - - imhough >> - -
    -
    -
    - - - - IPCV >> Image Transforms > imdistransf - -

    -

    imdistransf

    -

    Distance Transform

    - - -

    Syntax

    -
    imout = imdistransf(imin)
    - -

    Parameters

    -
    imin : -

    Input binary image or 8-bit, single-channel (binary)

    -
    method : -

    Distance type, l1, l2, or c where the setting shall correspond to 1, 2 and 3 respectively:

    -
    l1 : -

    distance = |x1-x2| + |y1-y2|, use 1

    -
    l2 : -

    the simple euclidean distance, use 2

    -
    c : -

    distance = max(|x1-x2|,|y1-y2|), use 3

    -
    imout : -

    Output image with calculated distances. It is a double precision single-channel image of the same size as input

    - -

    Description

    -

    This function used to calculates the distance to the closest zero pixel for each pixel of the source image.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/three_objects.png") , IMREAD_COLOR = 1);
    -Sgray = rgb2gray(S);
    -Sb = im2bw(Sgray,0.1);
    -Sd = imdistransf(Sb);
    -subplot(211);imshow(Sb);subplot(212);imshow(Sd);
    - -

    See also

    -
    • imwatershed — Performs a marker-based image segmentation using the watershed algorithm.
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 4.1.2 Online Documentation

    -
    - -
    - - - - - - -
    Report an issue
    - << imdct - - - Image Transforms - - - imhough >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imdivide.html b/help/en_US/scilab_en_US_help/imdivide.html deleted file mode 100644 index 8cc1bad..0000000 --- a/help/en_US/scilab_en_US_help/imdivide.html +++ /dev/null @@ -1,96 +0,0 @@ - - - imdivide - - - -
    - - - - -
    - << imcomplement - - - Image Arithmetic - - - imlincomb >> - -
    -
    -
    - - - - IPCV >> Image Arithmetic > imdivide - -

    -

    imdivide

    -

    Divide two images or divide an image by an constant.

    - - -

    Syntax

    -
    imout = imdivide(im1, im2)
    - -

    Parameters

    -
    im1 : -

    Input image.

    -
    im2 : -

    Input image with the same size and same class with im1 , or a double scalar.

    -
    imout : -

    The result of dividing im1 by im2 .

    - -

    Description

    -

    If im1 and im2 are images with the same size and same class, imdivide divides each element in im1 by the corresponding one in im2.

    -

    If im2 is a double scalar, the element in imout is the result of dividing the corresponding one in im1 by the double scalar. imout has the same size and class with im1.

    -

    If im1 is an integer matrix, the elements in the output matrix imout that exceed the range of the integer type will be truncated.

    -

    Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

    -

    - -

    Examples

    -
    im1 = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
    -im2 = imread(fullpath(getIPCVpath() + "/images/peppers.png"));
    -ims1 = imdivide(im1, im2);
    -ims2 = imdivide(im1, 0.6);
    - -

    See also

    -
    • imabsdiff — Calculate absolute difference of two images
    • -
    • imadd — Add two images or add a constant to an image
    • -
    • imsubtract — Subtract two images or subtract a constant from an image
    • -
    • immultiply — Multiply two images or multiply an image by an constant.
    • -
    • imcomplement — Complement image
    • -
    • imlincomb — Linear combination of images
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imcomplement - - - Image Arithmetic - - - imlincomb >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imdrawcontours.html b/help/en_US/scilab_en_US_help/imdrawcontours.html deleted file mode 100644 index a4cacd6..0000000 --- a/help/en_US/scilab_en_US_help/imdrawcontours.html +++ /dev/null @@ -1,96 +0,0 @@ - - - imdrawContours - - - - - - - - IPCV >> Structural Analysis and Shape Descriptors > imdrawContours - -

    -

    imdrawContours

    -

    Draw contours from the contour image.

    - - -

    Syntax

    -
    So = imdrawcontour(Slabel[, colormap[, thickness]])
    - -

    Parameters

    -
    Slabel : -

    Input labeled image

    -
    colormap : -

    Colormap used to draw the contour

    -
    thickness : -

    Thickness of the contours

    -
    So : -

    Output contours in RGB

    - -

    Description

    -

    This function used to draw the contours in RGB, with colormap and thickness.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
    -Sbw = im2bw(S,0.5);
    -Sc = imfindContours(Sbw);
    -Slabel = imcontour2label(S,Sc);
    -So = imdrawContours(Slabel);
    -imshow(im2uint8(So));
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imdrawmatches.html b/help/en_US/scilab_en_US_help/imdrawmatches.html deleted file mode 100644 index 43e1b75..0000000 --- a/help/en_US/scilab_en_US_help/imdrawmatches.html +++ /dev/null @@ -1,107 +0,0 @@ - - - imdrawmatches - - - - - - - - IPCV >> Feature Detection, Description and Matching > imdrawmatches - -

    -

    imdrawmatches

    -

    Draw matching result for 2 images

    - - -

    Syntax

    -
    imout = imdrawmatches(im1,im2,fobj1,fobj2,m);
    - -

    Parameters

    -
    im1 : -

    First input image

    -
    im2 : -

    Second input image

    -
    fobj1 : -

    First feature object

    -
    fobj2 : -

    Second feature object

    -
    m : -

    Matching matrix

    -
    imout : -

    Output matching image

    - -

    Description

    -

    This function used to draw matching result for 2 images with the features object and matching matrix provided.

    -

    - -

    Examples

    -
    // Read the image and rotate it by 45 degrees
    -S = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -S2 = imrotate(S,45);
    -// Use the ORB to detect features
    -f1 = imdetect_ORB(S)
    -f2 = imdetect_ORB(S2)
    -// Extract the descriptor
    -d1 = imextract_DescriptorORB(S,f1);
    -d2 = imextract_DescriptorORB(S2,f2);
    -// Feature matching
    -m = immatch_BruteForce(d1,d2,4)
    -// Find the 10 best matches
    -[fout1,fout2,mout] = imbestmatches(f1,f2,m,10);
    -// Draw the matches
    -SS = imdrawmatches(S,S2,fout1,fout2,mout);
    -// Show the comparison
    -imshow(SS);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imerode.html b/help/en_US/scilab_en_US_help/imerode.html deleted file mode 100644 index 6806818..0000000 --- a/help/en_US/scilab_en_US_help/imerode.html +++ /dev/null @@ -1,97 +0,0 @@ - - - imerode - - - -
    - - - - -
    - << imdilate - - - Morphological Operations - - - imfill >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imerode - -

    -

    imerode

    -

    Image erosion

    - - -

    Syntax

    -
    imout = imerode(imin,se)
    - -

    Parameters

    -
    imin : -

    Input image

    -
    se : -

    Structure element

    -
    imout : -

    Output image

    - -

    Description

    -

    The function erodes the source image using the specified structuring element -that determines the shape of a pixel neighborhood over which the minimum is taken.

    -

    - -

    Examples

    -
    a = zeros(10,10);
    -a(4:7,4:7) = 1;
    -se = imcreatese('rect',3,3);
    -b = imerode(a,se);
    -disp(b);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imdilate - - - Morphological Operations - - - imfill >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imextract_DescriptorBRISK.html b/help/en_US/scilab_en_US_help/imextract_DescriptorBRISK.html deleted file mode 100644 index 8d4c836..0000000 --- a/help/en_US/scilab_en_US_help/imextract_DescriptorBRISK.html +++ /dev/null @@ -1,95 +0,0 @@ - - - imextract_DescriptorBRISK - - - - - - - - IPCV >> Feature Detection, Description and Matching > imextract_DescriptorBRISK - -

    -

    imextract_DescriptorBRISK

    -

    Computes the descriptors for a set of keypoints detected in an image with BRISK method.

    - - -

    Syntax

    -
    des = imextract_DescriptorBRISK(im1,fobj1);
    - -

    Parameters

    -
    im1 : -

    Input image

    -
    fobj1 : -

    Features

    -
    des : -

    Descriptors for the features

    - -

    Description

    -

    This function extracts the descriptors of an image's features with BRISK method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,4,[1 0.5]);
    -fobj = imdetect_BRISK(S);
    -imshow(S); plotfeature(fobj);
    -des = imextract_DescriptorBRISK(S,fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imextract_DescriptorORB.html b/help/en_US/scilab_en_US_help/imextract_DescriptorORB.html deleted file mode 100644 index 205199b..0000000 --- a/help/en_US/scilab_en_US_help/imextract_DescriptorORB.html +++ /dev/null @@ -1,95 +0,0 @@ - - - imextract_DescriptorORB - - - - - - - - IPCV >> Feature Detection, Description and Matching > imextract_DescriptorORB - -

    -

    imextract_DescriptorORB

    -

    Computes the descriptors for a set of keypoints detected in an image with ORB method.

    - - -

    Syntax

    -
    des = imextract_DescriptorORB(im1,fobj1);
    - -

    Parameters

    -
    im1 : -

    Input image

    -
    fobj1 : -

    Features

    -
    des : -

    Descriptors for the features

    - -

    Description

    -

    This function extracts the descriptors of an image's features with ORB method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,4,[1 0.5]);
    -fobj = imdetect_ORB(S);
    -imshow(S); plotfeature(fobj);
    -des = imextract_DescriptorORB(S,fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imextract_DescriptorSIFT.html b/help/en_US/scilab_en_US_help/imextract_DescriptorSIFT.html deleted file mode 100644 index d406b2d..0000000 --- a/help/en_US/scilab_en_US_help/imextract_DescriptorSIFT.html +++ /dev/null @@ -1,95 +0,0 @@ - - - imextract_DescriptorSIFT - - - - - - - - IPCV >> Feature Detection, Description and Matching > imextract_DescriptorSIFT - -

    -

    imextract_DescriptorSIFT

    -

    Computes the descriptors for a set of keypoints detected in an image with SIFT method.

    - - -

    Syntax

    -
    des = imextract_DescriptorSIFT(im1,fobj1);
    - -

    Parameters

    -
    im1 : -

    Input image

    -
    fobj1 : -

    Features

    -
    des : -

    Descriptors for the features

    - -

    Description

    -

    This function extracts the descriptors of an image's features with ORB method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,4,[1 0.5]);
    -fobj = imdetect_SIFT(S);
    -imshow(S); plotfeature(fobj);
    -des = imextract_DescriptorSIFT(S,fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imextract_DescriptorSURF.html b/help/en_US/scilab_en_US_help/imextract_DescriptorSURF.html deleted file mode 100644 index b022a64..0000000 --- a/help/en_US/scilab_en_US_help/imextract_DescriptorSURF.html +++ /dev/null @@ -1,95 +0,0 @@ - - - imextract_DescriptorSURF - - - - - - - - IPCV >> Feature Detection, Description and Matching > imextract_DescriptorSURF - -

    -

    imextract_DescriptorSURF

    -

    Computes the descriptors for a set of keypoints detected in an image with SURF method.

    - - -

    Syntax

    -
    des = imextract_DescriptorSURF(im1,fobj1);
    - -

    Parameters

    -
    im1 : -

    Input image

    -
    fobj1 : -

    Features

    -
    des : -

    Descriptors for the features

    - -

    Description

    -

    This function extracts the descriptors of an image's features with SURF method

    -

    - -

    Examples

    -
    S = imcreatechecker(8,4,[1 0.5]);
    -fobj = imdetect_SURF(S);
    -imshow(S); plotfeature(fobj);
    -des = imextract_DescriptorSURF(S,fobj);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imfill.html b/help/en_US/scilab_en_US_help/imfill.html deleted file mode 100644 index 9f71b80..0000000 --- a/help/en_US/scilab_en_US_help/imfill.html +++ /dev/null @@ -1,87 +0,0 @@ - - - imfill - - - -
    - - - - -
    - << imerode - - - Morphological Operations - - - imgradient >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imfill - -

    -

    imfill

    -

    Filling holes for objects in a binary image

    - - -

    Syntax

    -
    imout = imfill(imin)
    - -

    Parameters

    -
    imin : -

    A binary image

    -
    imout : -

    The output with the holes filled.

    - -

    Description

    -

    This function used to fill the holes in a binary image for better object detection purpose.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/" + 'coins_gray.jpg'));
    -subplot(131);imshow(S);
    -Sbin = im2bw(~S,0.5);
    -subplot(132);imshow(Sbin);
    -Sfill = imfill(Sbin);
    -subplot(133);imshow(Sfill);
    - -

    See also

    -
    • im2bw — Convert image to binary
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imfilter.html b/help/en_US/scilab_en_US_help/imfilter.html deleted file mode 100644 index 247afff..0000000 --- a/help/en_US/scilab_en_US_help/imfilter.html +++ /dev/null @@ -1,93 +0,0 @@ - - - imfilter - - - - - - - - IPCV >> Image Linear Filtering > imfilter - -

    -

    imfilter

    -

    Image filtering

    - - -

    Syntax

    -
    imf = imfilter(im, F, bound, opsz)
    - -

    Parameters

    -
    im : -

    An image which will be filterd. The image can be UINT8, INT8, UINT16, INT16, INT32, DOUBLE.

    -
    F : -

    A double 2D filter.

    -
    imf : -

    The filtered image which has the same dimension and class with im .

    -
    bound : -

    Type of boundary, values or keywords. Current supported type with keyword is 'circular'.

    -
    opsz : -

    Output image size, either 'full' or 'same'.

    - -

    Description

    -

    imfilter filters an image im with filter F. When im is a mult-channel image, each channel can be filtered with F seperately. Input image pixel values outside the bounds of the image are assumed to equal the nearest array border value.

    -

    The only diffence of filter2 with imfilter is the output of filter2 is double matrix, and the output of imfilter has the same type as input and the elements in the output matrix that exceed the range of the integer type will be truncated.

    -

    - -

    Examples

    -
    im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
    -filter = fspecial('sobel');
    -imf = imfilter(im, filter);
    -imshow(imf);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imfindcontours.html b/help/en_US/scilab_en_US_help/imfindcontours.html deleted file mode 100644 index ed2b0a4..0000000 --- a/help/en_US/scilab_en_US_help/imfindcontours.html +++ /dev/null @@ -1,109 +0,0 @@ - - - imfindContours - - - - - - - - IPCV >> Structural Analysis and Shape Descriptors > imfindContours - -

    -

    imfindContours

    -

    Finds contours in a binary image.

    - - -

    Syntax

    -
    Sc = imfindContours(Sbw, rmode, method)
    - -

    Parameters

    -
    Sbw : -

    Input binary image

    -
    rmode : -

    Contour retrieval mode, value 0-4 allowed

    -
    0 : -

    RETR_EXTERNAL

    -
    1 : -

    RETR_LIST

    -
    2 : -

    RETR_CCOMP

    -
    3 : -

    RETR_TREE

    -
    4 : -

    RETR_FLOODFILL

    -
    method : -

    Contour approximation method, value 0-3 allowed

    -
    0 : -

    CHAIN_APPROX_NONE

    -
    1 : -

    CHAIN_APPROX_SIMPLE

    -
    2 : -

    CHAIN_APPROX_TC89_L1

    -
    3 : -

    CHAIN_APPROX_TC89_KCOS

    -
    Sc : -

    List which contains the coordinates for contours, each in one item in list.

    - -

    Description

    -

    This function used to find the contours of a binary image, returned in lists of coordinates.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
    -Sbw = im2bw(S,0.5);
    -Sc = imfindContours(Sbw);
    -implotContours(S,Sc,5)
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imfuse.html b/help/en_US/scilab_en_US_help/imfuse.html deleted file mode 100644 index ee8b559..0000000 --- a/help/en_US/scilab_en_US_help/imfuse.html +++ /dev/null @@ -1,93 +0,0 @@ - - - imfuse - - - - - - - - IPCV >> Image Registration and Image Fusion > imfuse - -

    -

    imfuse

    -

    Image fusion

    - - -

    Syntax

    -
    y = imfuse(x1,x2,method,alpha);
    - -

    Parameters

    -
    x1 : -

    First image

    -
    x2 : -

    Second image

    -
    method : -

    Fusion method, currently support 'colordiff', 'composite', 'diff','cascade', 'max' and 'min'

    -
    alpha : -

    ration for composite method

    -
    y : -

    Fused image

    - -

    Description

    -

    The function combine 2 images together using different method.

    -

    - -

    Examples

    -
    I1 = imread(fullpath(getIPCVpath() + "/images/lena.bmp"));
    -I2 = imread(fullpath(getIPCVpath() + "/images/lena7030.bmp"));
    -[S,TR,ROT,SC]=imphasecorr(I1,I2);
    -y = imfuse(I1,S,'colordiff');
    -imshow(y);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imgettransform.html b/help/en_US/scilab_en_US_help/imgettransform.html deleted file mode 100644 index 9e79c77..0000000 --- a/help/en_US/scilab_en_US_help/imgettransform.html +++ /dev/null @@ -1,89 +0,0 @@ - - - imgettransform - - - - - - - - IPCV >> Image Registration and Image Fusion > imgettransform - -

    -

    imgettransform

    -

    Get transformation matrix from given source and destination points

    - - -

    Syntax

    -
    mat = imgettransform(src,tgt)
    - -

    Parameters

    -
    src : -

    Source points

    -
    tgt : -

    Target points

    -
    tf_type : -

    Transformation type, affine or perspective

    -
    mat : -

    Transformation matrix

    - -

    Description

    -

    This functions create the transformation matrix for affine and perspective transform operation.

    -

    - -

    Examples

    -
    src = [261 412; 170 348; 213 282];
    -tgt = [175 412; 170 308; 251 308];
    -mat = imgettransform(src,tgt,'affine')
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imgradient.html b/help/en_US/scilab_en_US_help/imgradient.html deleted file mode 100644 index 2f8ffd3..0000000 --- a/help/en_US/scilab_en_US_help/imgradient.html +++ /dev/null @@ -1,96 +0,0 @@ - - - imgradient - - - -
    - - - - -
    - << imfill - - - Morphological Operations - - - imhitmiss >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imgradient - -

    -

    imgradient

    -

    Image gradient

    - - -

    Syntax

    -
    imout = imgradient(imin,se)
    - -

    Parameters

    -
    imin : -

    Input image

    -
    se : -

    Structure element

    -
    imout : -

    Output image

    - -

    Description

    -

    This operation is the difference between the dilation and the erosion of an image. -It is useful for finding the outline of an object .(it is assumed that the objects are bright on a dark foreground)

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/morpex.png"));
    -se = imcreatese('ellipse',3,3);
    -S2 = imgradient(S,se);
    -imshow(S2);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imfill - - - Morphological Operations - - - imhitmiss >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imgraythresh.html b/help/en_US/scilab_en_US_help/imgraythresh.html deleted file mode 100644 index 556e48a..0000000 --- a/help/en_US/scilab_en_US_help/imgraythresh.html +++ /dev/null @@ -1,87 +0,0 @@ - - - imgraythresh - - - - - - - - IPCV >> Image Types and Color Space Conversions > imgraythresh - -

    -

    imgraythresh

    -

    Calculate Otsu's Global threshold value

    - - -

    Syntax

    -
    level = imgraythresh (I)
    - -

    Parameters

    -
    I : -

    Source Image

    -
    level : -

    Otsu's threshold value

    - -

    Description

    -

    The function uses Otsu's method, which chooses the threshold to -minimize the intraclass variance of the black and white pixels.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/three_objects.png"));
    -th = imgraythresh(S);
    -S2 = im2bw(S,th);
    -scf; imshow(S2);
    - -

    See also

    -
    • im2bw — Convert image to binary
    - -

    Authors

    -
    • Barre-Piquot (Octave)
    • -
    • Tan Chin Luh (IPCV)
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imhist.html b/help/en_US/scilab_en_US_help/imhist.html deleted file mode 100644 index 946c2ea..0000000 --- a/help/en_US/scilab_en_US_help/imhist.html +++ /dev/null @@ -1,105 +0,0 @@ - - - imhist - - - -
    - - - - -
    - << edge - - - Image Analysis and Statistics - - - impixel >> - -
    -
    -
    - - - - IPCV >> Image Analysis and Statistics > imhist - -

    -

    imhist

    -

    get the histogram of an image

    - - -

    Syntax

    -
    [counts, cells] = imhist(im)
    -[counts, cells] = imhist(im, bins)
    -[counts, cells] = imhist(im, bins [,width [,color]])
    - -

    Parameters

    -
    im : -

    An image, which can be a boolean, uint8 , int8 , uint16 , int16 , int32 or double image.

    -
    bins : -

    The number of bins of the histogram. If bins is not specified, the function will used default value which determined by the image type: 2 for boolen, 2^8 for uint8 and int8, 2^16 for uint16 and int16, 2^16 for int32 (2^32 will need huge computer memory), and 10 for double.

    -
    width : -

    This argument will be sent to bar function. It is a real scalar, defines the width (a percentage of the available room) for the bar (default: 0.8, i.e 80%).

    -
    color : -

    This argument will be sent to bar function. It is a string (default: 'blue'), specifing the inside color bar.

    -
    counts : -

    the returned histogram.

    -
    cells : -

    the intervals for bins.

    - -

    Description

    -

    imhist return the histogram of an image. If more than 2 arguments are give, the histogram will be shown in a figure.

    -

    If step is the step of scalar cells (cells(i+1)=cells(i)+step), the i'th bin is half-open interval (cells(i)-step/2, cells(i)+step/2] for i > 1, and [cells(1)-step/2, cells(1)+step/2] for i=1.

    -

    If more than 2 arguments are given, the function will call bar(cells, counts, ...) and send rest arguments to bar function to display the histogram.

    -

    Supported image type -BOOLEAN, UINT8, INT8, UINT16, INT16, INT32, DOUBLE.

    -

    - -

    Examples

    -
    im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
    -im = rgb2gray(im);
    -[count, cells]=imhist(im);
    -[count, cells]=imhist(im, 10);
    -scf(0); imhist(im, 10, '');
    -scf(1); imhist(im, 10, 0.5);
    -scf(2); imhist(im, 10, 'green');
    -scf(3); imhist(im, 10, 0.8, 'green');
    - -

    See also

    -
    • mean2 — Average/mean of matrix elements
    • -
    • corr2 — 2D correlation coefficient
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << edge - - - Image Analysis and Statistics - - - impixel >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imhistequal.html b/help/en_US/scilab_en_US_help/imhistequal.html deleted file mode 100644 index b97590c..0000000 --- a/help/en_US/scilab_en_US_help/imhistequal.html +++ /dev/null @@ -1,93 +0,0 @@ - - - imhistequal - - - - - - - - IPCV >> Image Enhancement and Restoration > imhistequal - -

    -

    imhistequal

    -

    Histogram Equalization

    - - -

    Syntax

    -
    y = imhistequal(x)
    - -

    Parameters

    -
    x : -

    Source Image

    -
    y : -

    Output Image with enhanced contrast of images

    - -

    Description

    -

    This method usually increases the global contrast of many images, -especially when the usable data of the image is represented by close -contrast values. Through this adjustment, the intensities can be better -distributed on the histogram. This allows for areas of lower local -contrast to gain a higher contrast. Histogram equalization accomplishes -this by effectively spreading out the most frequent intensity values.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/Lena_dark.png"));
    -J = imhistequal(S);
    -imshow(S);
    -scf; imshow(J);
    - -

    See also

    -
    • imadjust — Adjust the intensity of an image from given source histogram range to the destination histogram range
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. Wikipedia : http://en.wikipedia.org/wiki/Histogram_equalization

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imhitmiss.html b/help/en_US/scilab_en_US_help/imhitmiss.html deleted file mode 100644 index 84db7ec..0000000 --- a/help/en_US/scilab_en_US_help/imhitmiss.html +++ /dev/null @@ -1,95 +0,0 @@ - - - imhitmiss - - - -
    - - - - -
    - << imgradient - - - Morphological Operations - - - imlabel >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imhitmiss - -

    -

    imhitmiss

    -

    Image Hit-Miss

    - - -

    Syntax

    -
    imout = imhitmiss(imin,se)
    - -

    Parameters

    -
    imin : -

    Input image

    -
    se : -

    Structure element

    -
    imout : -

    Output image

    - -

    Description

    -

    The function perform hit-miss operation on the source image using the specified structuring element.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/morpex.png"));
    -se = imcreatese('ellipse',11,11);
    -S2 = imhitmiss(S,se);
    -imshow(S2);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imhough.html b/help/en_US/scilab_en_US_help/imhough.html deleted file mode 100644 index 1bdb2c9..0000000 --- a/help/en_US/scilab_en_US_help/imhough.html +++ /dev/null @@ -1,89 +0,0 @@ - - - imhough - - - -
    - - - - -
    - << imdistransf - - - Image Transforms - - - imhoughc >> - -
    -
    -
    - - - - IPCV >> Image Transforms > imhough - -

    -

    imhough

    -

    Image Hough transformation

    - - -

    Syntax

    -
    [HM, rho, th] = imhough(S)
    - -

    Parameters

    -
    S : -

    Source Image

    -
    HM : -

    Hough Matrix

    -
    rho : -

    Distance from center to the point

    -
    th : -

    Angle from the center to the point

    - -

    Description

    -

    Applies Hough transformation to an image.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/2lines.png"));
    -[HM, rho, th] = imhough(S);
    -scf();Sgrayplot(th,rho,HM',strf="021");
    -xset("colormap",hotcolormap(64))
    - -

    See also

    -
    • imradon — Calculates the 2D-Radon transform of the matrix
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imdistransf - - - Image Transforms - - - imhoughc >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imhoughc.html b/help/en_US/scilab_en_US_help/imhoughc.html deleted file mode 100644 index 8ce7bdf..0000000 --- a/help/en_US/scilab_en_US_help/imhoughc.html +++ /dev/null @@ -1,79 +0,0 @@ - - - imhoughc - - - -
    - - - - -
    - << imhough - - - Image Transforms - - - imidct >> - -
    -
    -
    - - - - IPCV >> Image Transforms > imhoughc - -

    -

    imhoughc

    -

    Image Hough transformation for Circle Detection

    - - -

    Syntax

    -
    - -

    Parameters

    -
    - -

    Description

    -

    -

    - -

    Examples

    -
    - -

    See also

    -
    • imradon — Calculates the 2D-Radon transform of the matrix
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imhough - - - Image Transforms - - - imidct >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imidct.html b/help/en_US/scilab_en_US_help/imidct.html deleted file mode 100644 index e6bd109..0000000 --- a/help/en_US/scilab_en_US_help/imidct.html +++ /dev/null @@ -1,89 +0,0 @@ - - - imidct - - - -
    - - - - -
    - << imhoughc - - - Image Transforms - - - imlogpolar >> - -
    -
    -
    - - - - IPCV >> Image Transforms > imidct - -

    -

    imidct

    -

    Inverse discrete cosine transform (DCT)

    - - -

    Syntax

    -
    y = imdct(x);
    - -

    Parameters

    -
    x : -

    Input Matrix (1D or 2D)

    -
    y : -

    Output Matrix same dimension with x

    - -

    Description

    -

    Performs an inverse discrete Cosine transform of 1D or 2D array.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/measure_gray.jpg"));
    -y = imdct(S);
    -y2 = zeros(y);
    -y2(1:100,1:100) = y(1:100,1:100);
    -imshow(y2,jetcolormap(256));
    -S2 = imidct(y2);
    -imshow(S2./255);
    - -

    See also

    -
    • imdct — Discrete cosine transform (DCT)
    • -
    • fft2pad — Pad smaller matrix with zeros to the given size before transformation.
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imhoughc - - - Image Transforms - - - imlogpolar >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/iminpaint.html b/help/en_US/scilab_en_US_help/iminpaint.html deleted file mode 100644 index de19237..0000000 --- a/help/en_US/scilab_en_US_help/iminpaint.html +++ /dev/null @@ -1,97 +0,0 @@ - - - iminpaint - - - - - - - - IPCV >> Image Enhancement and Restoration > iminpaint - -

    -

    iminpaint

    -

    Restores the selected region in an image using the region neighborhood

    - - -

    Syntax

    -
    imout = iminpaint(imin,mask,rad,method)
    - -

    Parameters

    -
    imin : -

    Input Image

    -
    mask : -

    Input mask

    -
    rad : -

    Radius of a circular neighborhood of each point inpainted that is considered by the algorithm

    -
    method : -

    Inpainting method that could be either 0 --> Navier-Stokes based method or 1 --> Method by Alexandru Telea

    -
    imout : -

    Output Image

    - -

    Description

    -

    The function reconstructs the selected image area from the pixel near the area boundary. -The function may be used to remove dust and scratches from a scanned photo, or to remove undesirable objects from still images or video.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
    -mask = imroi(S);
    -imout = iminpaint(S,mask,1,1);
    -imshow(S);
    -scf; imshow(imout);
    - -

    See also

    -
    • imroi — Select region of interest and create a mask from it
    • -
    • imroifilt — Filtering of a selected region
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. http://en.wikipedia.org/wiki/Inpainting

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imlabel.html b/help/en_US/scilab_en_US_help/imlabel.html deleted file mode 100644 index bce26dc..0000000 --- a/help/en_US/scilab_en_US_help/imlabel.html +++ /dev/null @@ -1,89 +0,0 @@ - - - imlabel - - - -
    - - - - -
    - << imhitmiss - - - Morphological Operations - - - imopen >> - -
    -
    -
    - - - - IPCV >> Morphological Operations > imlabel - -

    -

    imlabel

    -

    Find blobs in an image

    - - -

    Syntax

    -
    [imout,n] = imlabel(imin)
    - -

    Parameters

    -
    imin : -

    Source Image

    -
    n : -

    Number of detected objects

    -
    imout : -

    Labeled Image

    - -

    Description

    -

    This function find all components on an image.

    -

    - -

    Examples

    -
    A = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
    -A_edge = edge(A,'canny');
    -se = imcreatese('ellipse',15,15);
    -A_dilate = imdilate(A_edge,se);
    -[A_labeled,n] = imlabel(A_dilate);
    -imshow(A_labeled,jetcolormap(n));
    - -

    See also

    -
    • imblobprop — Calculate blobs properties from labeled image
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imhitmiss - - - Morphological Operations - - - imopen >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imlincomb.html b/help/en_US/scilab_en_US_help/imlincomb.html deleted file mode 100644 index 33acf5a..0000000 --- a/help/en_US/scilab_en_US_help/imlincomb.html +++ /dev/null @@ -1,104 +0,0 @@ - - - imlincomb - - - -
    - - - - -
    - << imdivide - - - Image Arithmetic - - - immultiply >> - -
    -
    -
    - - - - IPCV >> Image Arithmetic > imlincomb - -

    -

    imlincomb

    -

    Linear combination of images

    - - -

    Syntax

    -
    imout = imlincomb(k1, im1, k2, im2, ..., kn, imn)
    -imout = imlincomb(k1, im1, k2, im2, ..., kn, imn, K)
    -imout = imlincomb(..., output_class)
    - -

    Parameters

    -
    im1, im2, ..., imn : -

    Input images with the same size and class.

    -
    k1, k2, ..., kn : -

    Double scalars.

    -
    K : -

    Offset, a double scalar.

    -
    output_class : -

    A string which specifies the output image class. The value of output_class can be 'int8', 'uint8', 'int16', 'uint16', 'int32' or 'constant'.

    -
    imout : -

    The linear combination of input images, which has the same size and class with input images or specified by output_class .

    - -

    Description

    -

    imcomplement computes the linear combination of input images.

    -

    imout = k1*im1 + k2*im2 + ... + kn*imn [+K]

    -

    If imout is an integer matrix, the elements in the output matrix imout that exceed the range of the integer type will be truncated.

    -

    Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

    -

    - -

    Examples

    -
    im1 = uint8([0, 50, 100; 150, 200, 250]);
    -im2 = uint8([1, 52, 103; 154, 205, 255]);
    -imlincomb( 0.43, im1, 0.7, im2)
    -imlincomb( 0.43, im1, 0.7, im2, 4)
    -imlincomb( 0.43, im1, 0.7, im2, 4, 'int16')
    -imlincomb( 0.43, im1, 0.7, im2, 4, 'constant')
    - -

    See also

    -
    • imabsdiff — Calculate absolute difference of two images
    • -
    • imadd — Add two images or add a constant to an image
    • -
    • imsubtract — Subtract two images or subtract a constant from an image
    • -
    • immultiply — Multiply two images or multiply an image by an constant.
    • -
    • imdivide — Divide two images or divide an image by an constant.
    • -
    • imcomplement — Complement image
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imdivide - - - Image Arithmetic - - - immultiply >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imlogpolar.html b/help/en_US/scilab_en_US_help/imlogpolar.html deleted file mode 100644 index 81d83a5..0000000 --- a/help/en_US/scilab_en_US_help/imlogpolar.html +++ /dev/null @@ -1,88 +0,0 @@ - - - imlogpolar - - - -
    - - - - -
    - << imidct - - - Image Transforms - - - imradon >> - -
    -
    -
    - - - - IPCV >> Image Transforms > imlogpolar - -

    -

    imlogpolar

    -

    Remaps an image to log-polar space.

    - - -

    Syntax

    -
    y = imlogpolar(x,m);
    - -

    Parameters

    -
    x : -

    Input image

    -
    m : -

    Magnitude scale parameter

    -
    y : -

    Output image

    - -

    Description

    -

    The function cvLogPolar transforms the source image using the following transformation: -p = m*log(sqrt(x^2 + y^2)), phi = atan(y/x)

    -

    - -

    Examples

    -
    x = imread(fullpath(getIPCVpath() + "/images/balloons.png"));
    -y = imlogpolar(x);
    -imshow(y);
    - -

    See also

    -
    • imgettransform — Get transformation matrix from given source and destination points
    • -
    • imtransform — Image affine transformation
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imidct - - - Image Transforms - - - imradon >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imlsusb.html b/help/en_US/scilab_en_US_help/imlsusb.html deleted file mode 100644 index fd309fc..0000000 --- a/help/en_US/scilab_en_US_help/imlsusb.html +++ /dev/null @@ -1,80 +0,0 @@ - - - imlsusb - - - - - - - - IPCV >> Utilities and Interactive Tools > imlsusb - -

    -

    imlsusb

    -

    List all USB devices connected to PC (linux only)

    - - -

    Syntax

    -
    out = imlsusb()
    - -

    Parameters

    -
    out : -

    Strings containing the devices information

    - -

    Description

    -

    The function list all the devices connected to the PC through USB ports.

    -

    - -

    Examples

    -
    imlsusb()
    - -

    See also

    -
    • imcaminfo — Show the supported raw resolution for an USB camera (linux only)
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/immatch_BruteForce.html b/help/en_US/scilab_en_US_help/immatch_BruteForce.html deleted file mode 100644 index 39ff460..0000000 --- a/help/en_US/scilab_en_US_help/immatch_BruteForce.html +++ /dev/null @@ -1,106 +0,0 @@ - - - immatch_BruteForce - - - - - - - - IPCV >> Feature Detection, Description and Matching > immatch_BruteForce - -

    -

    immatch_BruteForce

    -

    Brute-force matcher for features matching.

    - - -

    Syntax

    -
    m = immatch_BruteForce(des1,des2,normType);
    - -

    Parameters

    -
    des1 : -

    First descriptor

    -
    des2 : -

    Second descriptor

    -
    normType : -

    One of NORM_L1, NORM_L2, NORM_HAMMING, NORM_HAMMING2. L1 and L2 norms are preferable choices for SIFT and SURF descriptors, NORM_HAMMING should be used with ORB, BRISK and BRIEF, NORM_HAMMING2 should be used with ORB when WTA_K==3 or 4 (see ORB::ORB constructor description).

    -
    m : -

    Mathching matrix

    - -

    Description

    -

    This function used to Brute-force matcher to match the given descriptors.

    -

    - -

    Examples

    -
    // Read the image and rotate it by 45 degrees
    -S = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png"));
    -S2 = imrotate(S,45);
    -// Use the ORB to detect features
    -f1 = imdetect_ORB(S)
    -f2 = imdetect_ORB(S2)
    -// Extract the descriptor
    -d1 = imextract_DescriptorORB(S,f1);
    -d2 = imextract_DescriptorORB(S2,f2);
    -// Feature matching
    -m = immatch_BruteForce(d1,d2,4)
    -// Find the 10 best matches
    -[fout1,fout2,mout] = imbestmatches(f1,f2,m,10);
    -// Draw the matches
    -SS = imdrawmatches(S,S2,fout1,fout2,mout);
    -// Show the comparison
    -imshow(SS);
    - -

    See also

    -
    • imbestmatches — Find the best matched features from 2 features objects and the matching matrix
    • -
    • imdrawmatches — Draw matching result for 2 images
    - -

    Authors

    -
    • Tan Chin Luh
    - -

    Bibliography

    -

    1. OpenCV 2.4 Online Documentation

    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/immedian.html b/help/en_US/scilab_en_US_help/immedian.html deleted file mode 100644 index 999c6ba..0000000 --- a/help/en_US/scilab_en_US_help/immedian.html +++ /dev/null @@ -1,87 +0,0 @@ - - - immedian - - - - - - - - IPCV >> Image Enhancement and Restoration > immedian - -

    -

    immedian

    -

    Image median filter

    - - -

    Syntax

    -
    imout = immedian(imin,sz)
    - -

    Parameters

    -
    imin : -

    Input image

    -
    sz : -

    Size of the filter block

    - -

    Description

    -

    This function perform median filtering for an image, which effectively remove -pepper and salt noise.

    -

    - -

    Examples

    -
    S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
    -S_noise =  imnoise(S,'salt & pepper',0.02);
    -imshow(S_noise);
    -S2 = immedian(S_noise,3);
    -scf; imshow(S2);
    - -

    See also

    -
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/immesh.html b/help/en_US/scilab_en_US_help/immesh.html deleted file mode 100644 index 4b0410b..0000000 --- a/help/en_US/scilab_en_US_help/immesh.html +++ /dev/null @@ -1,87 +0,0 @@ - - - immesh - - - - - - - - IPCV >> Filter Design and Visualization > immesh - -

    -

    immesh

    -

    Visualize 2D matrix using mesh plot, useful for frequency response visualization.

    - - -

    Syntax

    -
    immesh(imin,n);
    - -

    Parameters

    -
    imin : -

    Input Matrix

    -
    n : -

    Number of points to plot

    - -

    Description

    -

    This function used to visualize the 2-D matrix as 3D mesh plot with the values -as the z-axes value. It is useful to visuallize the filter in frequency -domain, and also the frequency response of the images.

    -

    - -

    Examples

    -
    f = fspecial('gaussian');
    -F = fftshift(fft2pad(f,256,256));
    -immesh(abs(F),100);
    - -

    See also

    -
    • imsurf — Visualize 2D matrix using surf plot, useful for frequency response visualization.
    • -
    • imsmoothsurf — Visualize 2D matrix using smooth surf plot, useful for frequency response visualization.
    - -

    Authors

    -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/immultiply.html b/help/en_US/scilab_en_US_help/immultiply.html deleted file mode 100644 index c8e9bbd..0000000 --- a/help/en_US/scilab_en_US_help/immultiply.html +++ /dev/null @@ -1,96 +0,0 @@ - - - immultiply - - - -
    - - - - -
    - << imlincomb - - - Image Arithmetic - - - imsubtract >> - -
    -
    -
    - - - - IPCV >> Image Arithmetic > immultiply - -

    -

    immultiply

    -

    Multiply two images or multiply an image by an constant.

    - - -

    Syntax

    -
    imout = immultiply(im1, im2)
    - -

    Parameters

    -
    im1 : -

    Input image.

    -
    im2 : -

    Input image with the same size and same class with im1 , or a double scalar.

    -
    imout : -

    The product of im1 and im2 .

    - -

    Description

    -

    If im1 and im2 are images with the same size and same class, immultiply multiplies each element in im1 by the corresponding one in im2.

    -

    If im2 is a double scalar, the element in imout is the product of the corresponding one in im1 with the double scalar. imout has the same size and class with im1.

    -

    If im1 is an integer matrix, the elements in the output matrix imout that exceed the range of the integer type will be truncated.

    -

    Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

    -

    - -

    Examples

    -
    im1 = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png'));
    -im2 = imread(fullpath(getIPCVpath() + "/images/" + 'peppers.png'));
    -ims1 = immultiply(im1, im2);
    -ims2 = immultiply(im1, 0.6);
    - -

    See also

    -
    • imabsdiff — Calculate absolute difference of two images
    • -
    • imadd — Add two images or add a constant to an image
    • -
    • imsubtract — Subtract two images or subtract a constant from an image
    • -
    • imdivide — Divide two images or divide an image by an constant.
    • -
    • imcomplement — Complement image
    • -
    • imlincomb — Linear combination of images
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Tan Chin Luh
    -
    - -
    - - - - - - -
    Report an issue
    - << imlincomb - - - Image Arithmetic - - - imsubtract >> - -
    -
    -
    - - diff --git a/help/en_US/scilab_en_US_help/imnoise.html b/help/en_US/scilab_en_US_help/imnoise.html deleted file mode 100644 index 469d9a5..0000000 --- a/help/en_US/scilab_en_US_help/imnoise.html +++ /dev/null @@ -1,124 +0,0 @@ - - - imnoise - - - - - - - - IPCV >> Image Enhancement and Restoration > imnoise - -

    -

    imnoise

    -

    Add noise (gaussian, etc.) to an image

    - - -

    Syntax

    -
    imn = imnoise(im, type [,parameters])
    - -

    Parameters

    -
    im : -

    Input image.

    -
    type : -

    String having one of these values:

    -
    'salt & pepper' : -

    drop-out/On-off noise

    -
    'speckle' : -

    multiplicative noise

    -
    'gaussian' : -

    Gaussian white/additive noise

    -
    'localvar' : -

    Pixel-specific variance (Zero-mean Gaussian)

    -
    'poisson' : -

    Not yet implemented

    -
    parameters : -

    A sequence of parameters to control the noise distribution, depending on the chosen type. If omitted, default values are used (see below).

    -
    imn : -

    Noisy image, which has the same size and type as input image im .

    - -

    Description

    -

    imnoise(im, type [, parameters]) adds a type of noise to the intensity image im. Optionally, you can control the noise parameters starting at the 3rd. Argument to imnoise. Here are example of noise types and their parameterss:

    -

    imn = imnoise(im,'salt & pepper',d) adds drop-out noise, where d is the noise density (probability of swapping a pixel). (default: d=0.05).

    -

    imn = imnoise(im,'gaussian',m,v) adds Gaussian additive noise of mean m and variance v. (default: m=0 and v=0.01)

    -

    im = imnoise(im,'localvar',V) additive zero-mean Gaussian noise where the variance at im(i,j) is V(i,j).

    -

    imn = imnoise(im,'localvar', intensity, V) additive zero-mean Gaussian noise, and the local variance of the noise, var, is a function of the image intensity values in im. The variance is matrix( interp1(intensity(:),V(:),im(:)), size(im) )

    -

    imn = imnoise(im,'speckle',v) adds multiplicative noise, using imn = im + noise*im, where noise is uniformly distributed with mean 0 and variance v. (default: v=0.04)

    -

    By default, we consider that "1" corresponds to the maximum intensity value of the image, and "0" to minimum. If the input image im is an integer image, it will be converted to double using im2double function first. Before return the result, the image will be converted to the same type as the input image. The elements in the output matrix imn that exceed the range of the integer or double type will be truncated.

    -

    Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

    -

    - -

    Examples

    -
    im = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png'));
    -
    -imn = imnoise(im, 'gaussian');
    -imshow(imn);
    -
    -imn = imnoise(im, 'salt & pepper');
    -imshow(imn);
    -
    -imn = imnoise(im(:,:,1), 'salt & pepper', 0.2);
    -imshow(imn);
    -
    -lowtri = tril(ones(im(:,:,1)));
    -imn = imnoise( im(:,:,1), 'localvar', lowtri/5);
    -imshow(imn);
    -
    -imn = imnoise( im(:,:,1), 'localvar', [0:0.1:1], [0:0.1:1].^3);
    -imshow(imn);
    -
    -imn = imnoise(im, 'speckle' );
    -imshow(imn);
    - -

    See also

    -
    - -

    Authors

    -
    • Shiqi Yu
    • -
    • Ricardo Fabbri
    • -
    • Tan Chin Luh
    -
    - - - - diff --git a/help/en_US/scilab_en_US_help/imnorm.html b/help/en_US/scilab_en_US_help/imnorm.html deleted file mode 100644 index a25f597..0000000 --- a/help/en_US/scilab_en_US_help/imnorm.html +++ /dev/null @@ -1,85 +0,0 @@ - - - imnorm - - - - - - - - IPCV >> Image Types and Color Space Conversions > imnorm - -

    -

    imnorm

    -

    Normalize input 2-D Image to the range of 0-1 for double, or 0-255 for uint8

    - - -

    Syntax

    -
    y = imnorm(x)
    - -

    Parameters

    -
    x : -

    Input 2-D matrix

    -
    y : -

    Normalized output matrix

    - -

    Description

    -

    This function is used to normalized the 2-D matrix to the range of 0-1, or 0-255 for uint8, -to ensure the 2-D matrix follows the image representation standard in double or uint8 format.

    -

    - -

    Examples

    -
    s = rand(5,5);
    -s2 = imnorm(s);
    -disp(s2);
    - -

    See also

    -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imopen.html b/help/en_US/scilab_en_US_help/imopen.html deleted file mode 100644 index 80cfa65..0000000 --- a/help/en_US/scilab_en_US_help/imopen.html +++ /dev/null @@ -1,97 +0,0 @@ - - - imopen - - - -
      - - - - -
      - << imlabel - - - Morphological Operations - - - imtophat >> - -
      -
      -
      - - - - IPCV >> Morphological Operations > imopen - -

      -

      imopen

      -

      Image opening

      - - -

      Syntax

      -
      imout = imopen(imin,se)
      - -

      Parameters

      -
      imin : -

      Input image

      -
      se : -

      Structure element

      -
      imout : -

      Output image

      - -

      Description

      -

      The function perform opening operation on the source image using the specified structuring element. -This operation is same as by the erosion of an image followed by a dilation. -Useful for removing small objects (it is assumed that the objects are bright on a dark foreground)

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/morpex.png"));
      -se = imcreatese('ellipse',9,9);
      -S2 = imopen(S,se);
      -imshow(S2);
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - -
      - - - - - - -
      Report an issue
      - << imlabel - - - Morphological Operations - - - imtophat >> - -
      -
      -
      - - diff --git a/help/en_US/scilab_en_US_help/imphasecorr.html b/help/en_US/scilab_en_US_help/imphasecorr.html deleted file mode 100644 index dc2d075..0000000 --- a/help/en_US/scilab_en_US_help/imphasecorr.html +++ /dev/null @@ -1,93 +0,0 @@ - - - imphasecorr - - - - - - - - IPCV >> Image Registration and Image Fusion > imphasecorr - -

      -

      imphasecorr

      -

      Detection and automatic image registration for translation, rotation and scale using phase correlation method.

      - - -

      Syntax

      -
      [S,TR,ROT,SC]=imphasecorr(I1,I2)
      - -

      Parameters

      -
      I1 : -

      Target image

      -
      I2 : -

      Source image

      -
      S : -

      Registed Image

      -
      TR : -

      Translation

      -
      ROT : -

      Rotation

      -
      SC : -

      Scale

      - -

      Description

      -

      Detection and automatic image registration for translation, rotation and scale using phase correlation method.

      -

      - -

      Examples

      -
      I1 = imread(fullpath(getIPCVpath() + "/images/lena.bmp"));
      -I2 = imread(fullpath(getIPCVpath() + "/images/lena7030.bmp"));
      -[S,TR,ROT,SC]=imphasecorr(I1,I2);
      -imshow(S);
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/impixel.html b/help/en_US/scilab_en_US_help/impixel.html deleted file mode 100644 index 23669f5..0000000 --- a/help/en_US/scilab_en_US_help/impixel.html +++ /dev/null @@ -1,90 +0,0 @@ - - - impixel - - - -
      - - - - -
      - << imhist - - - Image Analysis and Statistics - - - improfile >> - -
      -
      -
      - - - - IPCV >> Image Analysis and Statistics > impixel - -

      -

      impixel

      -

      Return selected pixel coordinates and values

      - - -

      Syntax

      -
      [xc,yc,pixval] = impixel(S);
      - -

      Parameters

      -
      S : -

      Image matrix in Scilab

      -
      xc : -

      x-coordinates for the selected points

      -
      yc : -

      y-coordinates for the selected points

      -
      pixval : -

      Correspond pixels' values

      - -

      Description

      -

      This function provides interactive way to select the points on an image -and returned with the locations and pixels values. Multiple points could -be selected with left mouse click and the last point should be selected -with the right mouse click.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/balloons.png"));
      -impixel(S);
      - -

      See also

      -
      • improfile — Return profiles for the selected 2 points
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/impixelval.html b/help/en_US/scilab_en_US_help/impixelval.html deleted file mode 100644 index 8ee95f9..0000000 --- a/help/en_US/scilab_en_US_help/impixelval.html +++ /dev/null @@ -1,81 +0,0 @@ - - - impixelval - - - -
      - - - - -
      - << imlsusb - - - Utilities and Interactive Tools - - - imrects >> - -
      -
      -
      - - - - IPCV >> Utilities and Interactive Tools > impixelval - -

      -

      impixelval

      -

      Interactive tool to inspect pixel value at selected point

      - - -

      Syntax

      -
      impixelval(S)
      - -

      Parameters

      -
      S : -

      Scilab Image

      - -

      Description

      -

      This is an interactive tool to inspect pixel value by clicking the mouse butoon on the figure

      -

      - -

      Examples

      -
      S = imread(getIPCVpath() + "/images/" + "balloons.png");
      -impixelval(S)
      - - - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/implotContours.html b/help/en_US/scilab_en_US_help/implotContours.html deleted file mode 100644 index 39e79a2..0000000 --- a/help/en_US/scilab_en_US_help/implotContours.html +++ /dev/null @@ -1,89 +0,0 @@ - - - implotContours - - - - - - - - IPCV >> Structural Analysis and Shape Descriptors > implotContours - -

      -

      implotContours

      -

      Plot contours on image.

      - - -

      Syntax

      -
      implotContours(img, cntr[, thickness])
      - -

      Parameters

      -
      img : -

      Input image

      -
      cntr : -

      Contour in list

      -
      thickness : -

      Thickness of the contours

      - -

      Description

      -

      This function used to plot the contours on an image.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
      -Sbw = im2bw(S,0.5);
      -Sc = imfindContours(Sbw);
      -implotContours(S,Sc,5)
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/improfile.html b/help/en_US/scilab_en_US_help/improfile.html deleted file mode 100644 index fe33a13..0000000 --- a/help/en_US/scilab_en_US_help/improfile.html +++ /dev/null @@ -1,89 +0,0 @@ - - - improfile - - - -
      - - - - -
      - << impixel - - - Image Analysis and Statistics - - - mean2 >> - -
      -
      -
      - - - - IPCV >> Image Analysis and Statistics > improfile - -

      -

      improfile

      -

      Return profiles for the selected 2 points

      - - -

      Syntax

      -
      [xc,yc,pixval] = improfile(S)
      - -

      Parameters

      -
      S : -

      Image matrix in Scilab

      -
      xc : -

      x-coordinates for the selected points

      -
      yc : -

      y-coordinates for the selected points

      -
      pixval : -

      Correspond pixels' values along the selected points

      - -

      Description

      -

      This function provides interactive way to select 2 points on an image -and returned with the line profile. Use left mouse click to select 2 -points and the image profile would be computed and ploted on a new graph.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/balloons.png"));
      -improfile(S);
      - -

      See also

      -
      • impixel — Return selected pixel coordinates and values
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/impyramid.html b/help/en_US/scilab_en_US_help/impyramid.html deleted file mode 100644 index 1b2bdc5..0000000 --- a/help/en_US/scilab_en_US_help/impyramid.html +++ /dev/null @@ -1,95 +0,0 @@ - - - impyramid - - - -
      - - - - -
      - << imcropm - - - Spatial Transformations - - - imresize >> - -
      -
      -
      - - - - IPCV >> Spatial Transformations > impyramid - -

      -

      impyramid

      -

      Image pyramid reduction and expansion

      - - -

      Syntax

      -
      imout = imresize(imin, direction)
      - -

      Parameters

      -
      imin : -

      An image which will be downsampled or upsampled.

      -
      direction : -

      Can be 'reduce' or 'expand'. If direction is 'reduce', impyramid computes a Gaussian pyramid reduction of imin by one level. If direction is 'expand', impyramid computes a Gaussian pyramid expansion of imin by one level. Gaussian 5x5 filter is currently supported.

      -
      imout : -

      The output reduced or expanded image.

      - -

      Description

      -

      imout=impyramid(imin,direction) computes a Gaussian pyramid reduction or expasion of imin by one level. Direction can be 'reduce' or 'expand'. If imin is mxn and direction is 'reduce', then the size of imout is ceil(m/2)xceil(n/2). If direction is 'expand', then the size of imout is (2xm)x(2xn).

      -

      - -

      Examples

      -
      //Compute a four-level multiresolution pyramid of the 'lena' image.
      -
      -im0 = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png'));
      -im1 = impyramid(im0, 'reduce');
      -im2 = impyramid(im1, 'reduce');
      -im3 = impyramid(im2, 'reduce');
      -
      -imshow(im0);
      -imshow(im1);
      -imshow(im2);
      -imshow(im3);
      - -

      See also

      -
      - -

      Authors

      -
      • Jia Wu
      • -
      • Tan Chin Luh
      -
      - -
      - - - - - - -
      Report an issue
      - << imcropm - - - Spatial Transformations - - - imresize >> - -
      -
      -
      - - diff --git a/help/en_US/scilab_en_US_help/imradon.html b/help/en_US/scilab_en_US_help/imradon.html deleted file mode 100644 index cf031c4..0000000 --- a/help/en_US/scilab_en_US_help/imradon.html +++ /dev/null @@ -1,92 +0,0 @@ - - - imradon - - - -
      - - - - -
      - << imlogpolar - - - Image Transforms - - - imwatershed >> - -
      -
      -
      - - - - IPCV >> Image Transforms > imradon - -

      -

      imradon

      -

      Calculates the 2D-Radon transform of the matrix

      - - -

      Syntax

      -
      [RT,xp] = imradon (I,theta)
      - -

      Parameters

      -
      I : -

      Image matrix in Scilab

      -
      theta : -

      Angles for calculating radon tansform

      -
      RT : -

      Matrix of the Radon transform for one of the angles in theta.

      -
      xp : -

      Radial coordinates corresponding to each row of RT.

      - -

      Description

      -

      Calculates the 2D-Radon transform of the matrix I at angles given -in THETA. To each element of THETA corresponds a column in RT. -The variable XP represents the x-axis of the rotated coordinate. -If THETA is not defined, then 0:179 is assumed.

      -

      - -

      Examples

      -
      I = zeros(100,100);
      -I(25:75, 25:75) = 1;
      -[RT,xp] = imradon(I);
      -imshow(RT,hotcolormap(64));
      - -

      See also

      -
      • imhough — Image Hough transformation
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - -
      - - - - - - -
      Report an issue
      - << imlogpolar - - - Image Transforms - - - imwatershed >> - -
      -
      -
      - - diff --git a/help/en_US/scilab_en_US_help/imread.html b/help/en_US/scilab_en_US_help/imread.html deleted file mode 100644 index 2912641..0000000 --- a/help/en_US/scilab_en_US_help/imread.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imread - - - - - - - - IPCV >> Image Reading, Display and Exploration > imread - -

      -

      imread

      -

      Reads image file - Add modes support

      - - -

      Syntax

      -
      im = imread(filename)
      -im = imread(filename,modes)
      -im = imread(url)
      - -

      Parameters

      -
      filename,url : -

      A string, the image filename or a valid URL to be read. For the case of URL, the full syntax must be used. For example, "http://www.tritytech.com/images/phocagallery/roll8_ScilabIOT.png".

      -
      modes : -

      imread mode to be specified for different image format

      -
      im : -

      All images will be converted to gray images or RGB images. For gray images, this is a MxN unsigned char matrix; For RGB images, this is a MxNx3 unsigned char matrix.

      - -

      Description

      -

      imread reads many types of image files into Scilab. The format of the file is inferred from the extension in the filename parameter. Currently the following file formats are supported:

      -

      im = imread(filename)

      -

      reads image in filename into im matrix. If filename contains a truecolor image, im is a MxNx3 hypermatrix, so for example im(:,:,1) stands for the red channel. For gray images, im is a MxNx1 unsigned char matrix.

      -

      - -

      Examples

      -
      im = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png'));
      -imshow(im);
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imreadmulti.html b/help/en_US/scilab_en_US_help/imreadmulti.html deleted file mode 100644 index 12c98f7..0000000 --- a/help/en_US/scilab_en_US_help/imreadmulti.html +++ /dev/null @@ -1,89 +0,0 @@ - - - imreadmulti - - - - - - - - IPCV >> Image Reading, Display and Exploration > imreadmulti - -

      -

      imreadmulti

      -

      Reads multi pages image file

      - - -

      Syntax

      -
      im = imreadmulti(filename)
      -im = imreadmulti(filename,modes)
      - -

      Parameters

      -
      filename : -

      A string, the image filename to be read.

      -
      modes : -

      imread mode to be specified for different image format

      -
      im : -

      All images will be converted to gray images or RGB images. For gray images, this is a MxN unsigned char matrix; For RGB images, this is a MxNx3 unsigned char matrix.

      - -

      Description

      -

      imreadmulti reads multi pages image files into Scilab as 4 dimentions matrix.

      -

      - -

      Examples

      -
      im = imreadmulti(fullpath(getIPCVpath() + "/images/" + 'img_multipage.tiff'));
      -imshow(im(:,:,:,1);
      - -

      See also

      -
      • imread — Reads image file - Add modes support
      • -
      • imwrite — Write image to file
      • -
      • imshow — Display image in graphic window
      • -
      • imfinfo
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imrects.html b/help/en_US/scilab_en_US_help/imrects.html deleted file mode 100644 index f4f5dd7..0000000 --- a/help/en_US/scilab_en_US_help/imrects.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imrects - - - -
      - - - - -
      - << impixelval - - - Utilities and Interactive Tools - - - imroi >> - -
      -
      -
      - - - - IPCV >> Utilities and Interactive Tools > imrects - -

      -

      imrects

      -

      Draw Bounding Boxes on An Image

      - - -

      Syntax

      -
      imrects(BB,rgb)
      - -

      Parameters

      -
      BB : -

      Bounding Boxes, 4 by M, in which each column representing 1 box in [x,y,w,h].

      -
      rgb : -

      RGB values with value from 0 to 255 in [R,G,B] format

      - -

      Description

      -

      This function draw rectangles on the image using given bounding boxes paremeters.

      -

      - -

      Examples

      -
      A = imread(fullpath(getIPCVpath() + "/images/coins.png"));
      -Agray = rgb2gray(A);
      -Abin = im2bw(Agray,imgraythresh(Agray));
      -se = imcreatese('ellipse',15,15);
      -A_close = imclose(~Abin,se);
      -[A_labeled,n] = imlabel(A_close);
      -[Area, BB] = imblobprop(A_labeled);
      -imshow(A);
      -imrects(BB,[255 0 0]);
      - -

      See also

      -
      • imlabel — Find blobs in an image
      • -
      • imblobprop — Calculate blobs properties from labeled image
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imresize.html b/help/en_US/scilab_en_US_help/imresize.html deleted file mode 100644 index 2cbddd9..0000000 --- a/help/en_US/scilab_en_US_help/imresize.html +++ /dev/null @@ -1,102 +0,0 @@ - - - imresize - - - -
      - - - - -
      - << impyramid - - - Spatial Transformations - - - imrotate >> - -
      -
      -
      - - - - IPCV >> Spatial Transformations > imresize - -

      -

      imresize

      -

      Resizes image

      - - -

      Syntax

      -
      imout = imresize(imin, scale)
      -imout = imresize(imin, scale, interp)
      -imout = imresize(imin, [mrows ncols])
      -imout = imresize(imin, [mrows ncols], interp)
      - -

      Parameters

      -
      imin : -

      An image which will be resized.

      -
      scale : -

      The size of resized image is [width, height] x scale .

      -
      [mrows ncols] : -

      The size of resized image.

      -
      interp : -

      Interpolation method. The value of interp must be one of the follows:

      -
      1. 'nearest' : -

      nearest-neigbor interpolation (default value);

      -
      2. 'bilinear' : -

      bilinear interpolation;

      -
      3. 'bicubic' : -

      bicubic interpolation;

      -
      4. 'area' : -

      resampling using pixel area relation.

      - -

      Description

      -

      imresize resize the input image. When scale parameter is specified, the width and height of the image is resized in the same scale. There are four interpolation method can be used: nearest-neigbor, bilinear, bicubic and area methods. The default method is nearest-neigbor method.

      -

      - -

      Examples

      -
      im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
      -ima = imresize(im, 1.5);
      -imb = imresize(im, 1.5, 'bilinear');
      -imc = imresize(im, [100,200], 'bicubic');
      -imshow(ima);scf();imshow(imb);scf();imshow(imc);
      - -

      See also

      -
      - -

      Authors

      -
      • Shiqi Yu
      • -
      • Tan Chin Luh
      -
      - -
      - - - - - - -
      Report an issue
      - << impyramid - - - Spatial Transformations - - - imrotate >> - -
      -
      -
      - - diff --git a/help/en_US/scilab_en_US_help/imroi.html b/help/en_US/scilab_en_US_help/imroi.html deleted file mode 100644 index 200a8fa..0000000 --- a/help/en_US/scilab_en_US_help/imroi.html +++ /dev/null @@ -1,96 +0,0 @@ - - - imroi - - - -
      - - - - -
      - << imrects - - - Utilities and Interactive Tools - - - imselect >> - -
      -
      -
      - - - - IPCV >> Utilities and Interactive Tools > imroi - -

      -

      imroi

      -

      Select region of interest and create a mask from it

      - - -

      Syntax

      -
      imout = imroi(imin [, nr_points ])
      -imout = imroi(imin [, points ])
      - -

      Parameters

      -
      imin : -

      Input Image

      -
      nr_points : -

      Maximum number of points to select with mouse - a positive integer (the default value is 10)

      -
      points : -

      a 2xN matrix of points; if present the region is defined by points and no interactive mouse selection is used

      -
      imout : -

      Output mask

      - -

      Description

      -

      The first calling sequence is used to provide interactive way to select up to nr_points points (or up to 10 points, -if nr_points is not given) by using right mouse button to select the last point, and points are used -to create the image mask.

      -

      The second calling sequence is used to create a mask from a region defined by a Nx2 matrix points -which has the form [x1,y1;x2,y2;...;xN,yN], where (xi,yi), i=1..N are vertices of the region.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/balloons.png"));
      -imout = imroi(S); // interactive selection of a region (max 10 vertices)
      -imout = imroi(S,15); // interactive selection of a region (max 15 vertices)
      -imout = imroi(S,[10,10;20 20;15 35]); // create a mask from a region defined by points
      -imshow(imout);
      - -

      See also

      -
      • imroifill — Fill and image using the border color of the selected region
      • -
      • imroifilt — Filtering of a selected region
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imroifill.html b/help/en_US/scilab_en_US_help/imroifill.html deleted file mode 100644 index 3b028a7..0000000 --- a/help/en_US/scilab_en_US_help/imroifill.html +++ /dev/null @@ -1,90 +0,0 @@ - - - imroifill - - - -
      - - - - -
      - << ROI Processing - - - ROI Processing - - - imroifilt >> - -
      -
      -
      - - - - IPCV >> ROI Processing > imroifill - -

      -

      imroifill

      -

      Fill and image using the border color of the selected region

      - - -

      Syntax

      -
      result = imroifill(imin,mask)
      - -

      Parameters

      -
      imin : -

      Input Image

      -
      mask : -

      Input mask

      -
      result : -

      Output Image

      - -

      Description

      -

      This function is to fill the selected region with the borders' value, which -would remove an object from an image/

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
      -mask = imroi(S);
      -imout = imroifill(S,mask);
      -imshow(S);
      -scf; imshow(imout);
      - -

      See also

      -
      • imroi — Select region of interest and create a mask from it
      • -
      • imroifilt — Filtering of a selected region
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - -
      - - - - - - -
      Report an issue
      - << ROI Processing - - - ROI Processing - - - imroifilt >> - -
      -
      -
      - - diff --git a/help/en_US/scilab_en_US_help/imroifilt.html b/help/en_US/scilab_en_US_help/imroifilt.html deleted file mode 100644 index d46b693..0000000 --- a/help/en_US/scilab_en_US_help/imroifilt.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imroifilt - - - -
      - - - - -
      - << imroifill - - - ROI Processing - - - Spatial Transformations >> - -
      -
      -
      - - - - IPCV >> ROI Processing > imroifilt - -

      -

      imroifilt

      -

      Filtering of a selected region

      - - -

      Syntax

      -
      imout = imroifilt(imin,f,mask)
      - -

      Parameters

      -
      imin : -

      Input Image

      -
      f : -

      Input filter

      -
      mask : -

      Mask for the ROI

      -
      imout : -

      Output image

      - -

      Description

      -

      This function perform filtering over the region specified in mask.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/balloons_gray.png."));
      -mask = imroi(S);
      -h = fspecial('unsharp');
      -S2 = imroifilt(S,h,mask);
      -imshow(S2);
      - -

      See also

      -
      • imroi — Select region of interest and create a mask from it
      • -
      • imroifill — Fill and image using the border color of the selected region
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imrotate.html b/help/en_US/scilab_en_US_help/imrotate.html deleted file mode 100644 index 3ce857c..0000000 --- a/help/en_US/scilab_en_US_help/imrotate.html +++ /dev/null @@ -1,89 +0,0 @@ - - - imrotate - - - - - - - - IPCV >> Spatial Transformations > imrotate - -

      -

      imrotate

      -

      Rotate an image to given angle

      - - -

      Syntax

      -
      imout = imrotate(im1,deg,crp)
      - -

      Parameters

      -
      im1 : -

      Source Image

      -
      deg : -

      Rotational angle in degree, positive indicating anti-clockwise direction

      -
      crp : -

      Returns only central portion output image which is the same size as source if set to 1

      -
      imout : -

      Rotated Image

      - -

      Description

      -

      This function rotate an image to a given angle

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/puffin.png"));
      -J = imrotate(S,45);
      -imshow(S);
      -scf; imshow(J);
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imselect.html b/help/en_US/scilab_en_US_help/imselect.html deleted file mode 100644 index 9faac21..0000000 --- a/help/en_US/scilab_en_US_help/imselect.html +++ /dev/null @@ -1,90 +0,0 @@ - - - imselect - - - -
      - - - - -
      - << imroi - - - Utilities and Interactive Tools - - - rect2cart >> - -
      -
      -
      - - - - IPCV >> Utilities and Interactive Tools > imselect - -

      -

      imselect

      -

      Select points on an image.

      - - -

      Syntax

      -
      pts = imselect(n [, bnd])
      - -

      Parameters

      -
      n : -

      Number of maximum points to select, or it could be less by using right click.

      -
      bnd : -

      optional 1x4 vector [xmin, ymin, xmax, ymax];

      -
      pts : -

      Selected points coordinates, axes coordinates returns.

      - -

      Description

      -

      This function allows user to select the up to the maximum points specified in n, -or the last points could be selected by using right click. The returned coordinates -are in cartesian, which need to be manually converted to image coordinates if required.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/puffin.png"));
      -imshow(S);
      -pts = imselect(5);
      - -

      See also

      -
      • imcrop — Crop image
      • -
      • imroi — Select region of interest and create a mask from it
      • -
      • imcropm — Crop an image using mouse selection
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imshow.html b/help/en_US/scilab_en_US_help/imshow.html deleted file mode 100644 index a1115a4..0000000 --- a/help/en_US/scilab_en_US_help/imshow.html +++ /dev/null @@ -1,98 +0,0 @@ - - - imshow - - - - - - - - IPCV >> Image Reading, Display and Exploration > imshow - -

      -

      imshow

      -

      Display image in graphic window

      - - -

      Syntax

      -
      imshow(im)
      -imshow(im, varargin)
      -imshow(im, [colormap, outopt, handle])
      - -

      Parameters

      -
      im : -

      Input image

      -
      varargin (colormap): -

      Colormap for the image, defined in Nx3 matrix

      -
      varargin (outopt) : -

      Output options, 0 for Scilab graphics, 1 for uicontrol, 2 for tcl/tk

      -
      varargin (handle) : -

      Handle for which the image will shown

      - -

      Description

      -

      Show images in different types, double (0-1), uint8(0-255), binary, and others supported image datatype.

      -

      - -

      Examples

      -
      im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
      -imshow(im);
      -f = scf();
      -imshow(im, 1);
      -if with_tk() then
      -imshow(im, 2);
      -end
      - -

      See also

      -
      - -

      Authors

      -
      • Shiqi Yu
      • -
      • Allan CORNET
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imsmoothsurf.html b/help/en_US/scilab_en_US_help/imsmoothsurf.html deleted file mode 100644 index 6527775..0000000 --- a/help/en_US/scilab_en_US_help/imsmoothsurf.html +++ /dev/null @@ -1,87 +0,0 @@ - - - imsmoothsurf - - - -
      - - - - -
      - << immesh - - - Filter Design and Visualization - - - imsurf >> - -
      -
      -
      - - - - IPCV >> Filter Design and Visualization > imsmoothsurf - -

      -

      imsmoothsurf

      -

      Visualize 2D matrix using smooth surf plot, useful for frequency response visualization.

      - - -

      Syntax

      -
      imsmoothsurf(imin,n);
      - -

      Parameters

      -
      imin : -

      Input Matrix

      -
      n : -

      Number of points to plot

      - -

      Description

      -

      This function used to visualize the 2-D matrix as 3D surf plot with the values -as the z-axes value. It is useful to visuallize the filter in frequency -domain, and also the frequency response of the images.

      -

      - -

      Examples

      -
      f = fspecial('gaussian');
      -F = fftshift(fft2pad(f,256,256));
      -imsmoothsurf(abs(F),100);
      - -

      See also

      -
      • immesh — Visualize 2D matrix using mesh plot, useful for frequency response visualization.
      • -
      • imsurf — Visualize 2D matrix using surf plot, useful for frequency response visualization.
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imstitchimage.html b/help/en_US/scilab_en_US_help/imstitchimage.html deleted file mode 100644 index 714828c..0000000 --- a/help/en_US/scilab_en_US_help/imstitchimage.html +++ /dev/null @@ -1,107 +0,0 @@ - - - imstitchimage - - - - - - - - IPCV >> Image Stitching > imstitchimage - -

      -

      imstitchimage

      -

      Stitch Images Stored in List

      - - -

      Syntax

      -
      imout = imstitchimage(imvec)
      -imout = imstitchimage(imvec,params)
      - -

      Parameters

      -
      params : -

      A structure which consist of following fields, could be created with imstitchimage_params

      -
      RegistrationResol : -

      Resolution for image registration step. The default is 0.6 Mpx

      -
      SeamEstimationResol : -

      Resolution for seam estimation step. The default is 0.1 Mpx

      -
      CompositingResol : -

      Resolution for compositing step. Use -1 for original resolution.The default is 1

      -
      PanoConfidenceThresh : -

      Threshold for two images are from the same panorama confidence. The default is 1

      -
      WaveCorrection : -

      Perform wave effect correction. The default is 1

      -
      BlenderBands : -

      Then number of bands for MultiBandBlender. The default is 100

      - -

      Description

      -

      imstitchimage tries to stitch images saved in Scilab list together to form a panaromic image.

      -

      - -

      Examples

      -
      S = list();
      -S(1) = imread(fullpath(getIPCVpath() + "/images/stitching/sk1.jpg"));
      -S(2) = imread(fullpath(getIPCVpath() + "/images/stitching/sk2.jpg"));
      -S(3) = imread(fullpath(getIPCVpath() + "/images/stitching/sk3.jpg"));
      -S(4) = imread(fullpath(getIPCVpath() + "/images/stitching/sk4.jpg"));
      -S(5) = imread(fullpath(getIPCVpath() + "/images/stitching/sk5.jpg"));
      -S(6) = imread(fullpath(getIPCVpath() + "/images/stitching/sk6.jpg"));
      -St  = imstitchimage(S);
      -subplot(321);imshow(S(1));
      -subplot(322);imshow(S(2));
      -subplot(323);imshow(S(3));
      -subplot(324);imshow(S(4));
      -subplot(325);imshow(S(5));
      -subplot(326);imshow(S(6));
      -scf();imshow(St);
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imstitchimage_params.html b/help/en_US/scilab_en_US_help/imstitchimage_params.html deleted file mode 100644 index 3b49746..0000000 --- a/help/en_US/scilab_en_US_help/imstitchimage_params.html +++ /dev/null @@ -1,92 +0,0 @@ - - - imstitchimage_params - - - -
      - - - - -
      - << imstitchimage - - - Image Stitching - - - Image Transforms >> - -
      -
      -
      - - - - IPCV >> Image Stitching > imstitchimage_params - -

      -

      imstitchimage_params

      -

      Image Stitching Parameters

      - - -

      Syntax

      -
      params = imstitchimage_params()
      - -

      Parameters

      -
      params : -

      A structure which consist of following fields, used for imstitchimage.

      -
      RegistrationResol : -

      Resolution for image registration step. The default is 0.6 Mpx

      -
      SeamEstimationResol : -

      Resolution for seam estimation step. The default is 0.1 Mpx

      -
      CompositingResol : -

      Resolution for compositing step. Use -1 for original resolution.The default is 1

      -
      PanoConfidenceThresh : -

      Threshold for two images are from the same panorama confidence. The default is 1

      -
      WaveCorrection : -

      Perform wave effect correction. The default is 1

      -
      BlenderBands : -

      Then number of bands for MultiBandBlender. The default is 100

      - -

      Description

      -

      This function is used to create the initial parameters structure with initial values. The fields value could be easily changed and it will affect the stitching result.

      -

      - -

      Examples

      -
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imsubtract.html b/help/en_US/scilab_en_US_help/imsubtract.html deleted file mode 100644 index 4167cc1..0000000 --- a/help/en_US/scilab_en_US_help/imsubtract.html +++ /dev/null @@ -1,96 +0,0 @@ - - - imsubtract - - - -
      - - - - -
      - << immultiply - - - Image Arithmetic - - - Image Block Processing >> - -
      -
      -
      - - - - IPCV >> Image Arithmetic > imsubtract - -

      -

      imsubtract

      -

      Subtract two images or subtract a constant from an image

      - - -

      Syntax

      -
      imout = imsubtract(im1, im2)
      - -

      Parameters

      -
      im1 : -

      Input image.

      -
      im2 : -

      Input image with the same size and same class with im1 , or a double scalar.

      -
      imout : -

      The difference of im1 and im2 .

      - -

      Description

      -

      If im1 and im2 are images with the same size and same class, imsubtract subtracts each element in im2 from the corresponding one in im1.

      -

      If im2 is a double scalar, the element in imout is the difference of the corresponding one in im1 with the double scalar. imout has the same size and class with im1.

      -

      If im1 is an integer matrix, the elements in the output matrix imout that exceed the range of the integer type will be truncated.

      -

      Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

      -

      - -

      Examples

      -
      im1 = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
      -im2 = imread(fullpath(getIPCVpath() + "/images/peppers.png"));
      -ims1 = imsubtract(im1, im2);
      -ims2 = imsubtract(im1, 50);
      - -

      See also

      -
      • imabsdiff — Calculate absolute difference of two images
      • -
      • imadd — Add two images or add a constant to an image
      • -
      • immultiply — Multiply two images or multiply an image by an constant.
      • -
      • imdivide — Divide two images or divide an image by an constant.
      • -
      • imcomplement — Complement image
      • -
      • imlincomb — Linear combination of images
      - -

      Authors

      -
      • Shiqi Yu
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imsuperres.html b/help/en_US/scilab_en_US_help/imsuperres.html deleted file mode 100644 index 014c03c..0000000 --- a/help/en_US/scilab_en_US_help/imsuperres.html +++ /dev/null @@ -1,106 +0,0 @@ - - - imsuperres - - - - - - - - IPCV >> Super Resolution > imsuperres - -

      -

      imsuperres

      -

      Super Resolution with Image Sequences

      - - -

      Syntax

      -
      imout = imsuperres(imvec)
      -imout = imsuperres(imvec,params)
      - -

      Parameters

      -
      params : -

      A structure which consist of following fields, could be created with imsuperres_params

      -
      rfactor : -

      Magnification factor. The default is 4.

      -
      iter : -

      Number of iteration. The default is 50.

      -
      beta1 : -

      Asymptotic value of steepest descent method. The default is 1.3

      -
      lambda : -

      Weight parameter to balance data term and smoothness term. The default is 0.03

      -
      alpha : -

      Perform wave effect correction. The default is 0.7. btv kernel size is 7.

      - -

      Description

      -

      imsuperres using image sequences to produce higher resolution image.

      -

      - -

      Examples

      -
      S = list();
      -S(1) = imread(fullpath(getIPCVpath() + "/images/superres/input001.png"));
      -S(2) = imread(fullpath(getIPCVpath() + "/images/superres/input002.png"));
      -S(3) = imread(fullpath(getIPCVpath() + "/images/superres/input003.png"));
      -S(4) = imread(fullpath(getIPCVpath() + "/images/superres/input004.png"));
      -S(5) = imread(fullpath(getIPCVpath() + "/images/superres/input005.png"));
      -S(6) = imread(fullpath(getIPCVpath() + "/images/superres/input006.png"));
      -S(7) = imread(fullpath(getIPCVpath() + "/images/superres/input007.png"));
      -S(8) = imread(fullpath(getIPCVpath() + "/images/superres/input008.png"));
      -S(9) = imread(fullpath(getIPCVpath() + "/images/superres/input009.png"));
      -S(10) = imread(fullpath(getIPCVpath() + "/images/superres/input010.png"));
      -St  = imsuperres(S);
      -subplot(221);imshow(S(1));title("Original Image 1 of 10");
      -subplot(222);imshow(S(2));title("Original Image 2 of 10");
      -subplot(223);imshow(S(3));title("Original Image 3 of 10");
      -subplot(224);imshow(St);title("Super Resolution");
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imsuperres_params.html b/help/en_US/scilab_en_US_help/imsuperres_params.html deleted file mode 100644 index 23bf988..0000000 --- a/help/en_US/scilab_en_US_help/imsuperres_params.html +++ /dev/null @@ -1,90 +0,0 @@ - - - imsuperres_params - - - - - - - - IPCV >> Super Resolution > imsuperres_params - -

      -

      imsuperres_params

      -

      Super Resolution with Image Sequences Parameters

      - - -

      Syntax

      -
      params = imsuperres_params()
      - -

      Parameters

      -
      params : -

      A structure which consist of following fields, used for imsuperres.

      -
      rfactor : -

      Magnification factor. The default is 4.

      -
      iter : -

      Number of iteration. The default is 50.

      -
      beta1 : -

      Asymptotic value of steepest descent method. The default is 1.3

      -
      lambda : -

      Weight parameter to balance data term and smoothness term. The default is 0.03

      -
      alpha : -

      Perform wave effect correction. The default is 0.7. btv kernel size is 7.

      - -

      Description

      -

      This function is used to create the initial parameters structure with initial values. The fields value could be easily changed and it will affect the super resolution result.

      -

      - -

      Examples

      -
      - -

      See also

      -
      • imsuperres — Super Resolution with Image Sequences
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imsurf.html b/help/en_US/scilab_en_US_help/imsurf.html deleted file mode 100644 index a792514..0000000 --- a/help/en_US/scilab_en_US_help/imsurf.html +++ /dev/null @@ -1,87 +0,0 @@ - - - imsurf - - - - - - - - IPCV >> Filter Design and Visualization > imsurf - -

      -

      imsurf

      -

      Visualize 2D matrix using surf plot, useful for frequency response visualization.

      - - -

      Syntax

      -
      imsurf(imin,n);
      - -

      Parameters

      -
      imin : -

      Input Matrix

      -
      n : -

      Number of points to plot

      - -

      Description

      -

      This function used to visualize the 2-D matrix as 3D surf plot with the values -as the z-axes value. It is useful to visuallize the filter in frequency -domain, and also the frequency response of the images.

      -

      - -

      Examples

      -
      f = fspecial('gaussian');
      -F = fftshift(fft2pad(f,328,256));
      -imsurf(abs(F),100);
      - -

      See also

      -
      • immesh — Visualize 2D matrix using mesh plot, useful for frequency response visualization.
      • -
      • imsmoothsurf — Visualize 2D matrix using smooth surf plot, useful for frequency response visualization.
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imtophat.html b/help/en_US/scilab_en_US_help/imtophat.html deleted file mode 100644 index fc4d3dd..0000000 --- a/help/en_US/scilab_en_US_help/imtophat.html +++ /dev/null @@ -1,95 +0,0 @@ - - - imtophat - - - -
      - - - - -
      - << imopen - - - Morphological Operations - - - Object Detection >> - -
      -
      -
      - - - - IPCV >> Morphological Operations > imtophat - -

      -

      imtophat

      -

      Image tophat

      - - -

      Syntax

      -
      imout = imtophat(imin,se)
      - -

      Parameters

      -
      imin : -

      Input image

      -
      se : -

      Structure element

      -
      imout : -

      Output image

      - -

      Description

      -

      This operation is the difference between an input image and its opening

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/morpex.png"));
      -se = imcreatese('ellipse',7,7);
      -S2 = imtophat(S,se);
      -imshow(S2);
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imtrack_init.html b/help/en_US/scilab_en_US_help/imtrack_init.html deleted file mode 100644 index 8055aa6..0000000 --- a/help/en_US/scilab_en_US_help/imtrack_init.html +++ /dev/null @@ -1,108 +0,0 @@ - - - imtrack_init - - - -
      - - - - -
      - << Object Tracking - - - Object Tracking - - - imtrack_unloadall >> - -
      -
      -
      - - - - IPCV >> Object Tracking > imtrack_init - -

      -

      imtrack_init

      -

      Initialize Tracker

      - - -

      Syntax

      -
      ptr_track = imtrack_init(im, rect);
      - -

      Parameters

      -
      im : -

      Input image or frame

      -
      rect : -

      Rectangle of the object to be tracked

      -
      algo : -

      Tracking algorithms. Currently support BOOSTING, CSRT, GOTURN, KCF, MEDIANFLOW, MOSSE

      -
      ptr_track : -

      Tracker object pointer

      - -

      Description

      -

      This function is used to initialize the object tracker

      -

      - -

      Examples

      -
      n = aviopen(fullpath(getIPCVpath() + "/images/video.avi"));
      -
      -S1 = avireadframe(n,1);
      -S2 = avireadframe(n,5);
      -S3 = avireadframe(n,10);
      -S4 = avireadframe(n,15);
      -
      -rec = [136 49 38 24]';
      -subplot(221);imshow(S1);imrects(rec,[0 255 0]);title('Frame 1');
      -
      -tracker = imtrack_init(S1,rec,"CSRT");
      -
      -rec2 = imtrack_update(tracker,S2);
      -subplot(222);imshow(S2);imrects(rec2,[0 255 0]);title('Frame 5');
      -
      -rec3 = imtrack_update(tracker,S3);
      -subplot(223);imshow(S3);imrects(rec3,[0 255 0]);title('Frame 10');
      -
      -rec4 = imtrack_update(tracker,S4);
      -subplot(224);imshow(S4);imrects(rec4,[0 255 0]);title('Frame 15');
      -
      -imtrack_unloadall();
      - -

      See also

      -
      - -

      Authors

      -
      • CL Tan - Bytecode (formally Trity Technologies)
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imtrack_unloadall.html b/help/en_US/scilab_en_US_help/imtrack_unloadall.html deleted file mode 100644 index cba0c35..0000000 --- a/help/en_US/scilab_en_US_help/imtrack_unloadall.html +++ /dev/null @@ -1,80 +0,0 @@ - - - imtrack_unloadall - - - -
      - - - - -
      - << imtrack_init - - - Object Tracking - - - imtrack_update >> - -
      -
      -
      - - - - IPCV >> Object Tracking > imtrack_unloadall - -

      -

      imtrack_unloadall

      -

      Unload All Trackers

      - - -

      Syntax

      -
      imtrack_unloadall()
      - -

      Parameters

      -
      - -

      Description

      -

      This function is used to unload all trackers

      -

      - -

      Examples

      -
      - -

      See also

      -
      - -

      Authors

      -
      • CL Tan - Bytecode (formally Trity Technologies)
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imtrack_update.html b/help/en_US/scilab_en_US_help/imtrack_update.html deleted file mode 100644 index 88e69ba..0000000 --- a/help/en_US/scilab_en_US_help/imtrack_update.html +++ /dev/null @@ -1,106 +0,0 @@ - - - imtrack_update - - - -
      - - - - -
      - << imtrack_unloadall - - - Object Tracking - - - ROI Processing >> - -
      -
      -
      - - - - IPCV >> Object Tracking > imtrack_update - -

      -

      imtrack_update

      -

      Update Tracker

      - - -

      Syntax

      -
      rect = imtrack_update(ptr_track, im)
      - -

      Parameters

      -
      ptr_track : -

      Tracker object pointer

      -
      im : -

      Input image or frame

      -
      rect : -

      Updated rectangle of the object being tracked

      - -

      Description

      -

      This function is used to update the location of the tracked object

      -

      - -

      Examples

      -
      n = aviopen(fullpath(getIPCVpath() + "/images/video.avi"));
      -
      -S1 = avireadframe(n,1);
      -S2 = avireadframe(n,5);
      -S3 = avireadframe(n,10);
      -S4 = avireadframe(n,15);
      -
      -rec = [136 49 38 24]';
      -subplot(221);imshow(S1);imrects(rec,[0 255 0]);title('Frame 1');
      -
      -tracker = imtrack_init(S1,rec,"CSRT");
      -
      -rec2 = imtrack_update(tracker,S2);
      -subplot(222);imshow(S2);imrects(rec2,[0 255 0]);title('Frame 5');
      -
      -rec3 = imtrack_update(tracker,S3);
      -subplot(223);imshow(S3);imrects(rec3,[0 255 0]);title('Frame 10');
      -
      -rec4 = imtrack_update(tracker,S4);
      -subplot(224);imshow(S4);imrects(rec4,[0 255 0]);title('Frame 15');
      -
      -imtrack_unloadall();
      - -

      See also

      -
      - -

      Authors

      -
      • CL Tan - Bytecode (formally Trity Technologies)
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imtransform.html b/help/en_US/scilab_en_US_help/imtransform.html deleted file mode 100644 index b8b4915..0000000 --- a/help/en_US/scilab_en_US_help/imtransform.html +++ /dev/null @@ -1,98 +0,0 @@ - - - imtransform - - - - - - - - IPCV >> Image Registration and Image Fusion > imtransform - -

      -

      imtransform

      -

      Image affine transformation

      - - -

      Syntax

      -
      imout = imtransform(imin,warpmat,tf_type, width,height)
      - -

      Parameters

      -
      imin : -

      Source Image

      -
      warpmat : -

      Affine transform matrix

      -
      tf_type : -

      Transformation type, affine or perspective

      -
      width : -

      Output image width

      -
      height : -

      Output image height

      -
      imout : -

      Transformed Image

      - -

      Description

      -

      Applies an affine transformation or perspective transformation to an image.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/measure_gray.jpg"));
      -src = [261 412; 170 348; 213 282];
      -tgt = [175 412; 170 308; 251 308];
      -mat = imgettransform(src,tgt,'affine')
      -S2 = imtransform(S,mat,'affine');
      -imshow(S);
      -scf;imshow(S2);
      - -

      See also

      -
      • warpmatselect — Selecting points for image transformation
      • -
      • imrotate — Rotate an image to given angle
      • -
      • imgettransform — Get transformation matrix from given source and destination points
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imwatershed.html b/help/en_US/scilab_en_US_help/imwatershed.html deleted file mode 100644 index ae311e7..0000000 --- a/help/en_US/scilab_en_US_help/imwatershed.html +++ /dev/null @@ -1,95 +0,0 @@ - - - imwatershed - - - - - - - - IPCV >> Image Transforms > imwatershed - -

      -

      imwatershed

      -

      Performs a marker-based image segmentation using the watershed algorithm.

      - - -

      Syntax

      -
      imout = imwatershed(imin)
      - -

      Parameters

      -
      imin : -

      Input 8-bit 3-channel image.

      -
      markers : -

      Double precision single-channel image (map) of markers. It should have the same size as image.

      -
      imout : -

      Output labelled image

      - -

      Description

      -

      The function implements one of the variants of watershed, non-parametric marker-based segmentation algorithm.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/three_objects.png"), IMREAD_COLOR = 1);
      -Sgray = rgb2gray(S);
      -Sb = im2bw(Sgray,0.1);
      -Sd = imdistransf(Sb);
      -dist = Sd > 0.4;
      -[markers,n] = imlabel(dist);
      -markers(1:5,1:5) = 255;
      -Sw = imwatershed(S, markers);
      -imshow(Sw,hsvcolormap(3));
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      - -

      Bibliography

      -

      1. OpenCV 4.1.2 Online Documentation

      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imwiener2.html b/help/en_US/scilab_en_US_help/imwiener2.html deleted file mode 100644 index a82bf64..0000000 --- a/help/en_US/scilab_en_US_help/imwiener2.html +++ /dev/null @@ -1,90 +0,0 @@ - - - imwiener2 - - - - - - - - IPCV >> Image Enhancement and Restoration > imwiener2 - -

      -

      imwiener2

      -

      Wiener filter for image

      - - -

      Syntax

      -
      imout = imwiener2(imin,mn,noise)
      - -

      Parameters

      -
      imin : -

      Source Image

      -
      mn : -

      Block size

      -
      noise : -

      Noise ratio

      -
      imout : -

      Output Image

      - -

      Description

      -

      Wiener filter is used tp filter out noise that has corrupted an image based on a statistical approach.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/measure_gray.jpg"));
      -S2 = imnoise(S,'gaussian');
      -imshow(S2);
      -S3 = imwiener2(S2,[3 3],0.2);
      -imshow(S3);
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/imwrite.html b/help/en_US/scilab_en_US_help/imwrite.html deleted file mode 100644 index d974f06..0000000 --- a/help/en_US/scilab_en_US_help/imwrite.html +++ /dev/null @@ -1,91 +0,0 @@ - - - imwrite - - - - - - - - IPCV >> Image Reading, Display and Exploration > imwrite - -

      -

      imwrite

      -

      Write image to file

      - - -

      Syntax

      -
      ret=imwrite(im, filename)
      -ret=imwrite(im, filename, compression_ratio)
      - -

      Parameters

      -
      im : -

      im can be an M-by-N (greyscale image) or M-by-N-by-3 (color image) matrix. If im is not of class uint8, imwrite will convert the datatype before writing using im2uint8(im) .

      -
      filename : -

      A string that specifies the name of the output file.

      -
      ret : -

      Return value. If the image is successfully writed into a file, ret will be 1.

      - -

      Description

      -

      imwrite writes a matrix into a image file. The format of the file is inferred from the extension in the filename parameter. Currently the following file formats are supported:

      -

      - -

      Examples

      -
      im = rand(200,300);
      -imwrite(im, 'rand.png');
      -S = imread('rand.png');
      -imshow(S);
      - -

      See also

      -
      • imread — Reads image file - Add modes support
      • -
      • imshow — Display image in graphic window
      • -
      • imfinfo
      - -

      Authors

      -
      • Shiqi Yu
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/ind2rgb.html b/help/en_US/scilab_en_US_help/ind2rgb.html deleted file mode 100644 index c95d5d0..0000000 --- a/help/en_US/scilab_en_US_help/ind2rgb.html +++ /dev/null @@ -1,88 +0,0 @@ - - - ind2rgb - - - - - - - - IPCV >> Image Types and Color Space Conversions > ind2rgb - -

      -

      ind2rgb

      -

      Convert index image to RGB image

      - - -

      Syntax

      -
      imout = ind2rgb(imin,map)
      - -

      Parameters

      -
      imin : -

      Source indexed image

      -
      map : -

      Colormap

      -
      imout : -

      Output rgb image

      - -

      Description

      -

      This function convert the index image to RGB image with its' index and colormap. The output image is in double format.

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/puffin.png"));
      -[X,map] = rgb2ind(S,8);
      -imshow(X,map);
      -S2 = ind2rgb(X,map);
      -scf();imshow(S2)
      - -

      See also

      -
      • rgb2ind — Convert RGB image to index image
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/index.html b/help/en_US/scilab_en_US_help/index.html deleted file mode 100644 index 4e70c26..0000000 --- a/help/en_US/scilab_en_US_help/index.html +++ /dev/null @@ -1,983 +0,0 @@ - - - - - - -
      - - - - -
      - - - - - -
      -
      -
      - - - - -

      -

      IPCV

      - -
      - -
      - - - - - - -
      Report an issue
      - - - - - -
      -
      -
      - - diff --git a/help/en_US/scilab_en_US_help/jhelpidx.xml b/help/en_US/scilab_en_US_help/jhelpidx.xml deleted file mode 100644 index aa5a66e..0000000 --- a/help/en_US/scilab_en_US_help/jhelpidx.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/jhelpmap.jhm b/help/en_US/scilab_en_US_help/jhelpmap.jhm deleted file mode 100644 index 05f6366..0000000 --- a/help/en_US/scilab_en_US_help/jhelpmap.jhm +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/jhelpset.hs b/help/en_US/scilab_en_US_help/jhelpset.hs deleted file mode 100644 index 8ad2125..0000000 --- a/help/en_US/scilab_en_US_help/jhelpset.hs +++ /dev/null @@ -1,28 +0,0 @@ - - - -IPCV - -top - - - -TOC - -javax.help.TOCView -jhelptoc.xml - - -Index - -javax.help.IndexView -jhelpidx.xml - - -Search - -javax.help.SearchView -JavaHelpSearch - - \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/jhelptoc.xml b/help/en_US/scilab_en_US_help/jhelptoc.xml deleted file mode 100644 index ce15bec..0000000 --- a/help/en_US/scilab_en_US_help/jhelptoc.xml +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/mat2gray.html b/help/en_US/scilab_en_US_help/mat2gray.html deleted file mode 100644 index 5d116d3..0000000 --- a/help/en_US/scilab_en_US_help/mat2gray.html +++ /dev/null @@ -1,95 +0,0 @@ - - - mat2gray - - - - - - - - IPCV >> Image Types and Color Space Conversions > mat2gray - -

      -

      mat2gray

      -

      Convert matrix to grayscale image

      - - -

      Syntax

      -
      G = mat2gray(M)
      -G = mat2gray(M, [mmin, mmax])
      - -

      Parameters

      -
      M : -

      An matrix/image.

      -
      [mmin, mmax] : -

      [mmin, mmax] is the values in M that correspond to 0.0 and 1.0 in G . The elements in M which is lower than mmin will be converted to 0.0 , and greater than mmax will be converted to 1.0 .

      -
      G : -

      A double precision matrix/image which data value in the range [0,1].

      - -

      Description

      -

      mat2gray(M,[mmin, mmax]) converts the matrix M to the double precision image. The output matrix contains values in the range [0.0, 1.0]. mmin and mmax are the values in M that correspond to 0.0 and 1.0 in the output image.

      -

      When [mmin, mmax] is not specified, minimum and maximum of M are the values in M that correspond to 0.0 and 1.0 in the output image.

      -

      - -

      Examples

      -
      M = [0:10;0:10];
      -I = mat2gray(M);
      - -

      See also

      -
      • rgb2gray — Convert RGB images to gray images
      • -
      • im2bw — Convert image to binary
      • -
      • im2uint8 — Convert image to 8-bit unsigned integers
      • -
      • im2int8 — Convert image to 8-bit signed integers
      • -
      • im2uint16 — Convert image to 16-bit unsigned integers
      • -
      • im2int16 — Convert image to 16-bit signed integers
      • -
      • im2int32 — Convert image to 32-bit signed integers
      • -
      • im2double — Convert image to double precision
      - -

      Authors

      -
      • Shiqi Yu
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/mean2.html b/help/en_US/scilab_en_US_help/mean2.html deleted file mode 100644 index 0c6b9fb..0000000 --- a/help/en_US/scilab_en_US_help/mean2.html +++ /dev/null @@ -1,82 +0,0 @@ - - - mean2 - - - -
      - - - - -
      - << improfile - - - Image Analysis and Statistics - - - std2 >> - -
      -
      -
      - - - - IPCV >> Image Analysis and Statistics > mean2 - -

      -

      mean2

      -

      Average/mean of matrix elements

      - - -

      Syntax

      -
      m = mean2(im)
      - -

      Parameters

      -
      im : -

      An image, which can be integer or double matrix, but must be one channel image.

      -
      m : -

      The mean of the values in im , a scalar of class double.

      - -

      Description

      -

      mean2 computes the mean of a matrix using mean(im(:)).

      -

      - -

      See also

      -
      • corr2 — 2D correlation coefficient
      • -
      • std2 — Standard deviation of 2D matrix elements
      • -
      • stdev2 — Standard deviation of 2D matrix elements
      - -

      Authors

      -
      • Shiqi Yu
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/mkfftfilter.html b/help/en_US/scilab_en_US_help/mkfftfilter.html deleted file mode 100644 index f51739a..0000000 --- a/help/en_US/scilab_en_US_help/mkfftfilter.html +++ /dev/null @@ -1,102 +0,0 @@ - - - mkfftfilter - - - - - - - - IPCV >> Filter Design and Visualization > mkfftfilter - -

      -

      mkfftfilter

      -

      Create frequency domain filter

      - - -

      Syntax

      -
      h = mkfftfilter(image,name,rc1,rc2)
      - -

      Parameters

      -
      image : -

      Source Image

      -
      name : -

      Filter name, a string, the name can be 'binary', 'butterworth1', 'butterworth2', 'exp', 'gauss', or 'trapeze'

      -
      rc1 : -

      1st cut-off frequencies which set the filter characteristics, which is normalized to 0-1

      -
      rc2 : -

      2nd cut-off frequencies which set the filter characteristics, which is normalized to 0-1

      -
      h : -

      A matrix with values between 0 and 1. These values can then be applied on the fft spectrum of an image.

      - -

      Description

      -

      This function gives some popular filters to be applied on the spectrum (fft) of an image. -The Fourier Transform gives informations about which frequencies are present in a signal (spectrum). -A great property of the spectrum is that the original image can be reconstructed from it. -Of course, modifications in the spectrum will result in a modified image, -but spectrum modifications can be easier and more intuitive. A combination of several filters is possible. -All these filters are cylindrical and act only on amplitude (not on phase).

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/measure_gray.jpg"));
      -h = mkfftfilter(S,'gauss',0.1);
      -S2 = fft2(im2double(S));
      -S3 = S2.*fftshift(h);
      -S4 = real(ifft(S3));
      -imshow(S4);
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      - -

      Bibliography

      -

      1. "Optique: fondements et applications" J-P PEREZ 6e edition, Dunod

      -

      2. chap34: introduction au traitement numerique des images et a la couleur

      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/ntsc2rgb.html b/help/en_US/scilab_en_US_help/ntsc2rgb.html deleted file mode 100644 index 4c4617a..0000000 --- a/help/en_US/scilab_en_US_help/ntsc2rgb.html +++ /dev/null @@ -1,97 +0,0 @@ - - - ntsc2rgb - - - - - - - - IPCV >> Image Types and Color Space Conversions > ntsc2rgb - -

      -

      ntsc2rgb

      -

      Convert a NTSC image to the equivalent RGB image.

      - - -

      Syntax

      -
      RGB = ntsc2rgb(YIQ)
      - -

      Parameters

      -
      YIQ : -

      A NTSC image (hypermat). The dimension of NTSC should be M x N x 3 , the type should be double and the element value range should be [0,1].

      -
      RGB : -

      Output image, which has the same size as NTSC and type of double.

      - -

      Description

      -

      ntsc2rgb convert a NTSC image to the equivalent RGB image using:

      -

      R = Y + 0.956*I + 0.621*Q

      -

      G = Y - 0.272*I - 0.647*Q

      -

      B = Y - 1.105*I - 1.702*Q

      -

      Supported classe: DOUBLE.

      -

      - -

      Examples

      -
      RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
      -YIQ = rgb2ntsc(RGB);
      -RGB = ntsc2rgb(YIQ);
      -imshow(RGB);
      - -

      See also

      -
      • rgb2gray — Convert RGB images to gray images
      • -
      • mat2gray — Convert matrix to grayscale image
      • -
      • rgb2hsv — Convert a RGB image to the equivalent HSV image
      • -
      • hsv2rgb — Convert a HSV image to the equivalent RGB image.
      • -
      • rgb2ycbcr — Convert a RGB image to the equivalent YCbCr image.
      • -
      • ycbcr2rgb — Convert a YCbCr image to the equivalent RGB image.
      • -
      • rgb2ntsc — Convert a RGB image to the equivalent NTSC image YIQ.
      - -

      Authors

      -
      • Shiqi Yu
      • -
      • Ricardo Fabbri
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/plot3dot.html b/help/en_US/scilab_en_US_help/plot3dot.html deleted file mode 100644 index 20db6b9..0000000 --- a/help/en_US/scilab_en_US_help/plot3dot.html +++ /dev/null @@ -1,89 +0,0 @@ - - - plot3dot - - - - - - - - IPCV >> Analytic Geometry > plot3dot - -

      -

      plot3dot

      -

      3-D Parametric plot for opoints

      - - -

      Syntax

      -
      plot3dot(x,y,z)
      -plot3dot(x,y,z,mark_foreground,mark_style)
      - -

      Parameters

      -
      x : -

      x data

      -
      y : -

      y data

      -
      z : -

      z data

      -
      mark_foreground : -

      marker color

      -
      mark_style : -

      marker style

      - -

      Description

      -

      This is the function to visualize 3-D Parametric plot for opoints

      -

      - -

      Examples

      -
      x = rand(1:10);
      -y = rand(1:10);
      -z = rand(1:10);
      -plot3dot(x,y,z)
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/plotfeature.html b/help/en_US/scilab_en_US_help/plotfeature.html deleted file mode 100644 index f218dbd..0000000 --- a/help/en_US/scilab_en_US_help/plotfeature.html +++ /dev/null @@ -1,112 +0,0 @@ - - - plotfeature - - - - - - - - IPCV >> Feature Detection, Description and Matching > plotfeature - -

      -

      plotfeature

      -

      Plot the features detected by feature detectors

      - - -

      Syntax

      -
      plotfeature(fobj [,ind]);
      - -

      Parameters

      -
      fobj : -

      Features object

      -
      type : -

      Type of features

      -
      n : -

      Numbers of detected features

      -
      x : -

      Coordinates of the detected features - X

      -
      y : -

      Coordinates of the detected features - Y

      -
      size : -

      Size of detected features

      -
      angle : -

      keypoint orientation

      -
      response : -

      The response by which the most strong keypoints have been selected.

      -
      octave : -

      pyramid octave in which the keypoint has been detected

      -
      class_id : -

      object id

      -
      ind : -

      Index to which feature to be plotted

      - -

      Description

      -

      This function used to plot the features detected by feature detector

      -

      - -

      Examples

      -
      S = imcreatechecker(8,8,[1 0.5]);
      -fobj = imdetect_ORB(S);
      -imshow(S); plotfeature(fobj);
      - -

      See also

      -
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/rect2cart.html b/help/en_US/scilab_en_US_help/rect2cart.html deleted file mode 100644 index 0167cf6..0000000 --- a/help/en_US/scilab_en_US_help/rect2cart.html +++ /dev/null @@ -1,98 +0,0 @@ - - - rect2cart - - - -
      - - - - -
      - << imselect - - - Utilities and Interactive Tools - - - rectangle >> - -
      -
      -
      - - - - IPCV >> Utilities and Interactive Tools > rect2cart - -

      -

      rect2cart

      -

      Convert from image rectangular coordinate to cartesian coordinate in pixel mode

      - - -

      Syntax

      -
      [cart_x,cart_y] = rect2cart(dim, rect_x, rect_y)
      - -

      Parameters

      -
      dim : -

      Dimention of the Scilab matrix (first 2 dim of the matrix) in row and column format, in [row col].

      -
      varargin : -

      Input could be in rect_x and rect_y pairs (each in m x 1 matrix), or in m x 2 matrix which consist of [rect_x rect_y]

      -
      rect_x : -

      X in rectangular coordinate system

      -
      rect_y : -

      Y in rectangular coordinate system

      -
      varargout : -

      Output in cart_x and cart_y pairs or matrix of [cart_x cart_y] following in the input format

      -
      cart_x : -

      X in cartesian coordinate system

      -
      cart_y : -

      Y in cartesian coordinate system

      - -

      Description

      -

      This function used to convert from image rectangular coordinate to cartesian coordinate in pixel mode.

      -

      - -

      Examples

      -
      S = rand(10,10);
      -S2 = repmat(S,[1,1,3]);
      -S2(3,4,:) = [1,0,0];
      -imshow(S2);
      -rect_x = 4; rect_y = 3;
      -[cart_x,cart_y] = rect2cart([10,10], rect_x, rect_y);
      -plot(cart_x,cart_y, 'bx');
      - -

      See also

      -
      • sub2cart — Convert from matrix subscript notation to cartesian coordinate in pixel mode
      - -

      Authors

      -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/rectangle.html b/help/en_US/scilab_en_US_help/rectangle.html deleted file mode 100644 index 164796f..0000000 --- a/help/en_US/scilab_en_US_help/rectangle.html +++ /dev/null @@ -1,83 +0,0 @@ - - - rectangle - - - -
      - - - - -
      - << rect2cart - - - Utilities and Interactive Tools - - - sub2cart >> - -
      -
      -
      - - - - IPCV >> Utilities and Interactive Tools > rectangle - -

      -

      rectangle

      -

      Draw a rectangle on image

      - - -

      Syntax

      -
      imr = rectangle(im, rect, rgb)
      - -

      Parameters

      -
      im : -

      An image, which can be one channel or three channel image.

      -
      rect : -

      rect=[x, y, width, height] is a vector. (x, y) is the top-left corner of the rectangle.

      -
      imr : -

      imr is the the output image with the rectangle.

      - -

      Examples

      -
      im = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
      -imr = rectangle(im, [20, 30, 50, 100], [12 155 0]);
      -imshow(imr);
      - -

      See also

      -
      • imrects — Draw Bounding Boxes on An Image
      - -

      Authors

      -
      • Jia Wu
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/rgb2gray.html b/help/en_US/scilab_en_US_help/rgb2gray.html deleted file mode 100644 index 8d7d090..0000000 --- a/help/en_US/scilab_en_US_help/rgb2gray.html +++ /dev/null @@ -1,86 +0,0 @@ - - - rgb2gray - - - - - - - - IPCV >> Image Types and Color Space Conversions > rgb2gray - -

      -

      rgb2gray

      -

      Convert RGB images to gray images

      - - -

      Syntax

      -
      G = rgb2gray(RGB)
      - -

      Parameters

      -
      RGB : -

      A RGB image (hypermat), the dimension of RGB should be M x N x 3 .

      -
      G : -

      Output image, a gray image which dimension is M x N and has the same data type as RGB .

      - -

      Description

      -

      rgb2gry convert RGB images to gray scale images using G = 0.299*R + 0.587*G + 0.114*B.

      -

      - -

      Examples

      -
      RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
      -G = rgb2gray(RGB);
      -imshow(G);
      - -

      See also

      -
      • im2bw — Convert image to binary
      • -
      • mat2gray — Convert matrix to grayscale image
      - -

      Authors

      -
      • Shiqi Yu
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/rgb2hsv.html b/help/en_US/scilab_en_US_help/rgb2hsv.html deleted file mode 100644 index cbc5c82..0000000 --- a/help/en_US/scilab_en_US_help/rgb2hsv.html +++ /dev/null @@ -1,93 +0,0 @@ - - - rgb2hsv - - - - - - - - IPCV >> Image Types and Color Space Conversions > rgb2hsv - -

      -

      rgb2hsv

      -

      Convert a RGB image to the equivalent HSV image

      - - -

      Syntax

      -
      HSV = rgb2hsv(RGB)
      - -

      Parameters

      -
      RGB : -

      A RGB image (matrix), the dimension of RGB should be M x N x 3 .

      -
      HSV : -

      Output image, which has the same size and type as RGB.

      - -

      Description

      -

      rgb2hsv convert a RGB image to the equivalent HSV image

      -

      Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE.

      -

      - -

      Examples

      -
      RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
      -HSV = rgb2hsv(RGB);
      -RGB = hsv2rgb(HSV);
      -imshow(RGB);
      - -

      See also

      -
      • rgb2gray — Convert RGB images to gray images
      • -
      • mat2gray — Convert matrix to grayscale image
      • -
      • hsv2rgb — Convert a HSV image to the equivalent RGB image.
      • -
      • rgb2ycbcr — Convert a RGB image to the equivalent YCbCr image.
      • -
      • ycbcr2rgb — Convert a YCbCr image to the equivalent RGB image.
      • -
      • rgb2ntsc — Convert a RGB image to the equivalent NTSC image YIQ.
      • -
      • ntsc2rgb — Convert a NTSC image to the equivalent RGB image.
      - -

      Authors

      -
      • Shiqi Yu
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/rgb2ind.html b/help/en_US/scilab_en_US_help/rgb2ind.html deleted file mode 100644 index a909c4f..0000000 --- a/help/en_US/scilab_en_US_help/rgb2ind.html +++ /dev/null @@ -1,100 +0,0 @@ - - - rgb2ind - - - - - - - - IPCV >> Image Types and Color Space Conversions > rgb2ind - -

      -

      rgb2ind

      -

      Convert RGB image to index image

      - - -

      Syntax

      -
      [imout,map] = rgb2ind(imin,n)
      - -

      Parameters

      -
      inm : -

      Source Image

      -
      n : -

      n levels for each color channel intensity

      -
      imout : -

      Output indexed image

      -
      map : -

      Colormap

      - -

      Description

      -

      On input Im is a n1 x n2 x 3 hypermat describing a -true color image Im(i,j,:) giving the R-G-B of the -pixel (i,j). -On output A is a n1 x n2 matrix, A(i,j) given the -index on the "true" color map of the (i,j) pixel. -There are n levels for each color channel intensity -(each intensity being given by an integer I between 0 and n-1) -To the "color" R,G,B (R,G,B in [0,n-1]) must correspond the -index k= R n^2 + G n + B + 1 of the table cmap of size n^3 x 3 -and cmap(k,:) = [R/(n-1) G/(n-1) B/(n-1)] -As the max size of a cmap in scilab is 2^16-2, -n = 40 is the max possible (40^3 <= 2^16 - 2 < 41^3).

      -

      - -

      Examples

      -
      S = imread(fullpath(getIPCVpath() + "/images/puffin.png"));
      -[X,map] = rgb2ind(S,8);
      -imshow(X,map);
      - -

      See also

      -
      • ind2rgb — Convert index image to RGB image
      - -

      Authors

      -
      • Ricardo Fabbri
      • -
      • Tan Chin Luh
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/rgb2lab.html b/help/en_US/scilab_en_US_help/rgb2lab.html deleted file mode 100644 index a8d0061..0000000 --- a/help/en_US/scilab_en_US_help/rgb2lab.html +++ /dev/null @@ -1,82 +0,0 @@ - - - rgb2lab - - - - - - - - IPCV >> Image Types and Color Space Conversions > rgb2lab - -

      -

      rgb2lab

      -

      Convert from RGB color space to LAB color space

      - - -

      Syntax

      -
      imout = rgb2lab(imin)
      - -

      Parameters

      -
      imin : -

      RGB Image

      -
      imout : -

      LAB Image

      - -

      Description

      -

      This function convert from rgb to lab

      -

      - -

      Examples

      -
      - -

      See also

      -
        - -

        Authors

        -
        • Tan Chin Luh
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/rgb2ntsc.html b/help/en_US/scilab_en_US_help/rgb2ntsc.html deleted file mode 100644 index 3dea25d..0000000 --- a/help/en_US/scilab_en_US_help/rgb2ntsc.html +++ /dev/null @@ -1,97 +0,0 @@ - - - rgb2ntsc - - - - - - - - IPCV >> Image Types and Color Space Conversions > rgb2ntsc - -

        -

        rgb2ntsc

        -

        Convert a RGB image to the equivalent NTSC image YIQ.

        - - -

        Syntax

        -
        YIQ = rgb2ntsc(RGB)
        - -

        Parameters

        -
        RGB : -

        A RGB image (hypermat), the dimension of RGB should be M x N x 3 .

        -
        YIQ : -

        Output image, which has the same size as RGB and type of double.

        - -

        Description

        -

        rgb2ntsc convert a RGB image to the equivalent NTSC image YIQ using:

        -

        Y = 0.299*R + 0.587*G + 0.114*B

        -

        I = 0.596*R - 0.274*G - 0.322*B

        -

        Q = 0.212*R - 0.523*G - 0.311*B

        -

        Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE. If RGB is not a double image, it will be converted to double image first in the procedure.

        -

        - -

        Examples

        -
        RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
        -YIQ = rgb2ntsc(RGB);
        -RGB = ntsc2rgb(YIQ);
        -imshow(RGB);
        - -

        See also

        -
        • rgb2gray — Convert RGB images to gray images
        • -
        • mat2gray — Convert matrix to grayscale image
        • -
        • rgb2hsv — Convert a RGB image to the equivalent HSV image
        • -
        • hsv2rgb — Convert a HSV image to the equivalent RGB image.
        • -
        • rgb2ycbcr — Convert a RGB image to the equivalent YCbCr image.
        • -
        • ycbcr2rgb — Convert a YCbCr image to the equivalent RGB image.
        • -
        • ntsc2rgb — Convert a NTSC image to the equivalent RGB image.
        - -

        Authors

        -
        • Shiqi Yu
        • -
        • Ricardo Fabbri
        • -
        • Tan Chin Luh
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/rgb2ycbcr.html b/help/en_US/scilab_en_US_help/rgb2ycbcr.html deleted file mode 100644 index 2249b4d..0000000 --- a/help/en_US/scilab_en_US_help/rgb2ycbcr.html +++ /dev/null @@ -1,96 +0,0 @@ - - - rgb2ycbcr - - - - - - - - IPCV >> Image Types and Color Space Conversions > rgb2ycbcr - -

        -

        rgb2ycbcr

        -

        Convert a RGB image to the equivalent YCbCr image.

        - - -

        Syntax

        -
        YCC = rgb2ycbcr(RGB)
        - -

        Parameters

        -
        RGB : -

        A RGB image (hypermat), the dimension of RGB should be M x N x 3 .

        -
        YCC : -

        Output image, which has the same size as RGB and type of double.

        - -

        Description

        -

        rgb2ycbcr convert a RGB image to the equivalent HSV image using:

        -

        Y = 0.299*R + 0.587*G + 0.114*B

        -

        Cb = (B-Y)*0.564 + 0.5

        -

        Cr = (R-Y)*0.713 + 0.5

        -

        Supported classes: INT8, UINT8, INT16, UINT16, INT32, DOUBLE. If RGB is not a double image, it will be converted to double image first in the procedure.

        -

        - -

        Examples

        -
        RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
        -YCC = rgb2ycbcr(RGB);
        -RGB = ycbcr2rgb(YCC);
        -imshow(RGB);
        - -

        See also

        -
        • rgb2gray — Convert RGB images to gray images
        • -
        • mat2gray — Convert matrix to grayscale image
        • -
        • rgb2hsv — Convert a RGB image to the equivalent HSV image
        • -
        • hsv2rgb — Convert a HSV image to the equivalent RGB image.
        • -
        • ycbcr2rgb — Convert a YCbCr image to the equivalent RGB image.
        • -
        • rgb2ntsc — Convert a RGB image to the equivalent NTSC image YIQ.
        • -
        • ntsc2rgb — Convert a NTSC image to the equivalent RGB image.
        - -

        Authors

        -
        • Shiqi Yu
        • -
        • Tan Chin Luh
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/scilab_code.css b/help/en_US/scilab_en_US_help/scilab_code.css deleted file mode 100644 index 658f42e..0000000 --- a/help/en_US/scilab_en_US_help/scilab_code.css +++ /dev/null @@ -1,96 +0,0 @@ -.scilabcomment { - font-style: italic; - color: #01a801 -} - -.scilabdefault { - font-style: normal; - color: #000000 -} - -.scilabspecial { - font-style: normal; - color: #ffaa00 -} - -.scilabconstants { - font-style: normal; - color: #da70d6 -} - -.scilaboperator { - font-style: normal; - color: #5c5c5c -} - -.scilabnumber { - font-style: normal; - color: #bc8f8f -} - -.scilabfkeyword { - font-style: normal; - color: #b01813 -} - -.scilabskeyword { - font-style: normal; - color: #a020f0 -} - -.scilabckeyword { - font-style: normal; - color: #5f9ea0 -} - -.scilabcommand { - font-style: normal; - color: #32b9b9 -} - -.scilabmacro { - font-style: normal; - color: #ae5cb0 -} - -a.scilabcommand { - font-style: normal; - text-decoration: underline; - color: #32b9b9 -} - -a.scilabmacro { - font-style: normal; - text-decoration: underline; - color: #ae5cb0 -} - -.scilabstring { - font-style: normal; - color: #bc8f8f -} - -.scilabid { - font-style: normal; - color: #000000 -} - -.scilabinputoutputargs { - font-weight: bold; - color: #834310 -} - -.scilabfunctionid { - font-weight: bold; - color: #000000 -} - -.scilabfield { - font-style: normal; - color: #aaaaaa -} - -.scilabopenclose { - font-style: normal; - color: #4a55db -} diff --git a/help/en_US/scilab_en_US_help/section_14c99f1b9c24be46c36a00ab7d7bfefa.html b/help/en_US/scilab_en_US_help/section_14c99f1b9c24be46c36a00ab7d7bfefa.html deleted file mode 100644 index 5d74c19..0000000 --- a/help/en_US/scilab_en_US_help/section_14c99f1b9c24be46c36a00ab7d7bfefa.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - IPCV >> Image Block Processing - -

        -

        Image Block Processing

        -
        • im2colConvert image into series of columns
        • - - - - - -
        • imblockprocDistict block processing for an image
        • - - - - - -
        • imblockslideSliding block processing for an image
        • - - - - - -
        • imcolprocSliding block processing for an image, with vectorization
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_3a3193854720bf9d39f805cb163d86fe.html b/help/en_US/scilab_en_US_help/section_3a3193854720bf9d39f805cb163d86fe.html deleted file mode 100644 index a54cb18..0000000 --- a/help/en_US/scilab_en_US_help/section_3a3193854720bf9d39f805cb163d86fe.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - -
        - - - - -
        - - - IPCV - - - Camera Handling >> - -
        -
        -
        - - - - IPCV >> Analytic Geometry - -

        -

        Analytic Geometry

        -
        • plot3dot3-D Parametric plot for opoints
        -
        - -
        - - - - - - -
        Report an issue
        - - - IPCV - - - Camera Handling >> - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/section_411468e5458df42f06fc284265287a1a.html b/help/en_US/scilab_en_US_help/section_411468e5458df42f06fc284265287a1a.html deleted file mode 100644 index e18b5b9..0000000 --- a/help/en_US/scilab_en_US_help/section_411468e5458df42f06fc284265287a1a.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - IPCV >> Morphological Operations - -

        -

        Morphological Operations

        -
        • bwborderFind border for an image
        • - - - - - -
        • imblackhatImage blackhat
        • - - - - - -
        • imblobpropCalculate blobs properties from labeled image
        • - - - - - -
        • imcloseImage closing
        • - - - - - -
        • imcreateseCreating Structure Element for Morphological operation
        • - - - - - -
        • imdilateImage dilation
        • - - - - - -
        • imerodeImage erosion
        • - - - - - -
        • imfillFilling holes for objects in a binary image
        • - - - - - -
        • imgradientImage gradient
        • - - - - - -
        • imhitmissImage Hit-Miss
        • - - - - - -
        • imlabelFind blobs in an image
        • - - - - - -
        • imopenImage opening
        • - - - - - -
        • imtophatImage tophat
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_464cbe6df08049f9d4796741b8b805d4.html b/help/en_US/scilab_en_US_help/section_464cbe6df08049f9d4796741b8b805d4.html deleted file mode 100644 index c34a862..0000000 --- a/help/en_US/scilab_en_US_help/section_464cbe6df08049f9d4796741b8b805d4.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - -
        - - - - -
        - << Object Tracking - - - IPCV - - - Spatial Transformations >> - -
        -
        -
        - - - - IPCV >> ROI Processing - -

        -

        ROI Processing

        -
        • imroifillFill and image using the border color of the selected region
        • - - - - - -
        • imroifiltFiltering of a selected region
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_4fbf0bdb315d361303c4ecfec2a326cf.html b/help/en_US/scilab_en_US_help/section_4fbf0bdb315d361303c4ecfec2a326cf.html deleted file mode 100644 index f5291d0..0000000 --- a/help/en_US/scilab_en_US_help/section_4fbf0bdb315d361303c4ecfec2a326cf.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - -
        - - - - -
        - << Super Resolution - - - IPCV - - - Video Handling >> - -
        -
        -
        - - - - IPCV >> Utilities and Interactive Tools - -

        -

        Utilities and Interactive Tools

        -
        • im2movieCreate movie from sequence of images
        • - - - - - -
        • imaddtextAdding text to a color image
        • - - - - - -
        • imbreaksetSet the break event with Scilab figure
        • - - - - - -
        • imbreakunsetUnset the break event with Scilab figure
        • - - - - - -
        • imcaminfoShow the supported raw resolution for an USB camera (linux only)
        • - - - - - -
        • imchooseChoose a bounding box with mouse
        • - - - - - -
        • imdistlineMeasure distance between 2 selected points in pixels.
        • - - - - - -
        • imlsusbList all USB devices connected to PC (linux only)
        • - - - - - -
        • impixelvalInteractive tool to inspect pixel value at selected point
        • - - - - - -
        • imrectsDraw Bounding Boxes on An Image
        • - - - - - -
        • imroiSelect region of interest and create a mask from it
        • - - - - - -
        • imselectSelect points on an image.
        • - - - - - -
        • rect2cartConvert from image rectangular coordinate to cartesian coordinate in pixel mode
        • - - - - - -
        • rectangleDraw a rectangle on image
        • - - - - - -
        • sub2cartConvert from matrix subscript notation to cartesian coordinate in pixel mode
        -
        - -
        - - - - - - -
        Report an issue
        - << Super Resolution - - - IPCV - - - Video Handling >> - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/section_5b247fab668df8629d9a7c7d74abbda7.html b/help/en_US/scilab_en_US_help/section_5b247fab668df8629d9a7c7d74abbda7.html deleted file mode 100644 index a9a06f3..0000000 --- a/help/en_US/scilab_en_US_help/section_5b247fab668df8629d9a7c7d74abbda7.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - IPCV >> Image Analysis and Statistics - -

        -

        Image Analysis and Statistics

        -
        • corr22D correlation coefficient
        • - - - - - -
        • edgeFind edges in a single channel image.
        • - - - - - -
        • imhistget the histogram of an image
        • - - - - - -
        • impixelReturn selected pixel coordinates and values
        • - - - - - -
        • improfileReturn profiles for the selected 2 points
        • - - - - - -
        • mean2Average/mean of matrix elements
        • - - - - - -
        • std2Standard deviation of 2D matrix elements
        • - - - - - -
        • stdev2Standard deviation of 2D matrix elements
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_65811ec7bde5eeb78d8c6b2aa429517f.html b/help/en_US/scilab_en_US_help/section_65811ec7bde5eeb78d8c6b2aa429517f.html deleted file mode 100644 index 0ce7933..0000000 --- a/help/en_US/scilab_en_US_help/section_65811ec7bde5eeb78d8c6b2aa429517f.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - -
        - - - - -
        - << Image Block Processing - - - IPCV - - - Image Linear Filtering >> - -
        -
        -
        - - - - IPCV >> Image Enhancement and Restoration - -

        -

        Image Enhancement and Restoration

        -
        • imadjustAdjust the intensity of an image from given source histogram range to the destination histogram range
        • - - - - - -
        • imdeconvl2Deconvolution with L2 Regularization
        • - - - - - -
        • imdeconvsobolevDeconvolution by Sobolev Regularization
        • - - - - - -
        • imdeconvwienerDeconvolution with Wiener method
        • - - - - - -
        • imdecorrstretchApply decorrelation stretch to multichannel image
        • - - - - - -
        • imhistequalHistogram Equalization
        • - - - - - -
        • iminpaintRestores the selected region in an image using the region neighborhood
        • - - - - - -
        • immedianImage median filter
        • - - - - - -
        • imnoiseAdd noise (gaussian, etc.) to an image
        • - - - - - -
        • imwiener2Wiener filter for image
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_69d3038051dd81e26e076ba2796efaaa.html b/help/en_US/scilab_en_US_help/section_69d3038051dd81e26e076ba2796efaaa.html deleted file mode 100644 index 3bdb840..0000000 --- a/help/en_US/scilab_en_US_help/section_69d3038051dd81e26e076ba2796efaaa.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - - - IPCV >> Image Reading, Display and Exploration - -

        -

        Image Reading, Display and Exploration

        -
        • imcreatecheckerDetect features from an image with FAST algorithm. Usually used for corner features.
        • - - - - - -
        • imdestroyDestroy graphic window created using imdisplay (highgui).
        • - - - - - -
        • imdestroyallDestroy ALL graphic window created using imdisplay (highgui).
        • - - - - - -
        • imdisplayDisplay image using highgui for faster frame rate
        • - - - - - -
        • imreadReads image file - Add modes support
        • - - - - - -
        • imreadmultiReads multi pages image file
        • - - - - - -
        • imshowDisplay image in graphic window
        • - - - - - -
        • imwriteWrite image to file
        • - - - - - -
        • tifreadSpecial function to read 12-bits 1024x1024 CCD image
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_70f67a5afe4fde7d59f7cb24a4adb0b8.html b/help/en_US/scilab_en_US_help/section_70f67a5afe4fde7d59f7cb24a4adb0b8.html deleted file mode 100644 index b37a36a..0000000 --- a/help/en_US/scilab_en_US_help/section_70f67a5afe4fde7d59f7cb24a4adb0b8.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - IPCV >> Filter Design and Visualization - -

        -

        Filter Design and Visualization

        -
        • fft2padPad smaller matrix with zeros to the given size before transformation.
        • - - - - - -
        • immeshVisualize 2D matrix using mesh plot, useful for frequency response visualization.
        • - - - - - -
        • imsmoothsurfVisualize 2D matrix using smooth surf plot, useful for frequency response visualization.
        • - - - - - -
        • imsurfVisualize 2D matrix using surf plot, useful for frequency response visualization.
        • - - - - - -
        • mkfftfilterCreate frequency domain filter
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_75f54431e2194dec46f8e74973f6a35e.html b/help/en_US/scilab_en_US_help/section_75f54431e2194dec46f8e74973f6a35e.html deleted file mode 100644 index 75bc94c..0000000 --- a/help/en_US/scilab_en_US_help/section_75f54431e2194dec46f8e74973f6a35e.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - -
        - - - - -
        - << Utilities and Interactive Tools - - - IPCV - - - -
        -
        -
        - - - - IPCV >> Video Handling - -

        -

        Video Handling

        -
        • addframeAdd a frame to the video file. (Depreciated. Replaced by aviaddframe.)
        • - - - - - -
        • aviaddframeAdd a frame to the video file.
        • - - - - - -
        • avicloseClose a video file.
        • - - - - - -
        • avicloseallClose all opened video files/cameras.
        • - - - - - -
        • avifileCreate a new video file to write.
        • - - - - - -
        • aviinfoRetrieve video file information
        • - - - - - -
        • avilistopenedShow all opened video files.
        • - - - - - -
        • aviopenOpen a video file.
        • - - - - - -
        • avireadframeGrabs and returns a frame from a opened video file or camera.
        -
        - -
        - - - - - - -
        Report an issue
        - << Utilities and Interactive Tools - - - IPCV - - - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/section_7935e25b36f3c58861b2962921ef08a7.html b/help/en_US/scilab_en_US_help/section_7935e25b36f3c58861b2962921ef08a7.html deleted file mode 100644 index 689d04a..0000000 --- a/help/en_US/scilab_en_US_help/section_7935e25b36f3c58861b2962921ef08a7.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - IPCV >> Image Stitching - -

        -

        Image Stitching

        - -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_7d487fa50af482d311ad1099def58007.html b/help/en_US/scilab_en_US_help/section_7d487fa50af482d311ad1099def58007.html deleted file mode 100644 index a66b313..0000000 --- a/help/en_US/scilab_en_US_help/section_7d487fa50af482d311ad1099def58007.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - IPCV >> Super Resolution - -

        -

        Super Resolution

        - -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_7f6c2f919a1d3daf9d6d8bc3342428c9.html b/help/en_US/scilab_en_US_help/section_7f6c2f919a1d3daf9d6d8bc3342428c9.html deleted file mode 100644 index 509ca1c..0000000 --- a/help/en_US/scilab_en_US_help/section_7f6c2f919a1d3daf9d6d8bc3342428c9.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - IPCV >> Image Registration and Image Fusion - -

        -

        Image Registration and Image Fusion

        -
        • imfuseImage fusion
        • - - - - - -
        • imgettransformGet transformation matrix from given source and destination points
        • - - - - - -
        • imphasecorrDetection and automatic image registration for translation, rotation and scale using phase correlation method.
        • - - - - - -
        • imtransformImage affine transformation
        • - - - - - -
        • warpmatselectSelecting points for image transformation
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_80c32e071bcb6598fd30fc598d132662.html b/help/en_US/scilab_en_US_help/section_80c32e071bcb6598fd30fc598d132662.html deleted file mode 100644 index a21bca4..0000000 --- a/help/en_US/scilab_en_US_help/section_80c32e071bcb6598fd30fc598d132662.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - -
        - - - - -
        - << Object Detection - - - IPCV - - - ROI Processing >> - -
        -
        -
        - - - - IPCV >> Object Tracking - -

        -

        Object Tracking

        - -
        - -
        - - - - - - -
        Report an issue
        - << Object Detection - - - IPCV - - - ROI Processing >> - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/section_8829e4d6e9152d923fe53f29cd5a10e7.html b/help/en_US/scilab_en_US_help/section_8829e4d6e9152d923fe53f29cd5a10e7.html deleted file mode 100644 index fd8f3fc..0000000 --- a/help/en_US/scilab_en_US_help/section_8829e4d6e9152d923fe53f29cd5a10e7.html +++ /dev/null @@ -1,185 +0,0 @@ - - - - - - -
        - - - - -
        - << Image Transforms - - - IPCV - - - Morphological Operations >> - -
        -
        -
        - - - - IPCV >> Image Types and Color Space Conversions - -

        -

        Image Types and Color Space Conversions

        -
        • hsv2rgbConvert a HSV image to the equivalent RGB image.
        • - - - - - -
        • hsv2rgb2Convert a HSV image to the equivalent RGB image.
        • - - - - - -
        • im2bwConvert image to binary
        • - - - - - -
        • im2doubleConvert image to double precision
        • - - - - - -
        • im2int16Convert image to 16-bit signed integers
        • - - - - - -
        • im2int32Convert image to 32-bit signed integers
        • - - - - - -
        • im2int8Convert image to 8-bit signed integers
        • - - - - - -
        • im2uint16Convert image to 16-bit unsigned integers
        • - - - - - -
        • im2uint8Convert image to 8-bit unsigned integers
        • - - - - - -
        • imgraythreshCalculate Otsu's Global threshold value
        • - - - - - -
        • imnormNormalize input 2-D Image to the range of 0-1 for double, or 0-255 for uint8
        • - - - - - -
        • ind2rgbConvert index image to RGB image
        • - - - - - -
        • mat2grayConvert matrix to grayscale image
        • - - - - - -
        • ntsc2rgbConvert a NTSC image to the equivalent RGB image.
        • - - - - - -
        • rgb2grayConvert RGB images to gray images
        • - - - - - -
        • rgb2hsvConvert a RGB image to the equivalent HSV image
        • - - - - - -
        • rgb2indConvert RGB image to index image
        • - - - - - -
        • rgb2labConvert from RGB color space to LAB color space
        • - - - - - -
        • rgb2ntscConvert a RGB image to the equivalent NTSC image YIQ.
        • - - - - - -
        • rgb2ycbcrConvert a RGB image to the equivalent YCbCr image.
        • - - - - - -
        • xs2imConvert graphics to an image matrix.
        • - - - - - -
        • ycbcr2rgbConvert a YCbCr image to the equivalent RGB image.
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_8d01e70a5f1c1858764d8ebb9bc37aec.html b/help/en_US/scilab_en_US_help/section_8d01e70a5f1c1858764d8ebb9bc37aec.html deleted file mode 100644 index a884b17..0000000 --- a/help/en_US/scilab_en_US_help/section_8d01e70a5f1c1858764d8ebb9bc37aec.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - IPCV >> Image Transforms - -

        -

        Image Transforms

        -
        • imdctDiscrete cosine transform (DCT)
        • - - - - - -
        • imdistransfDistance Transform
        • - - - - - -
        • imhoughImage Hough transformation
        • - - - - - -
        • imhoughcImage Hough transformation for Circle Detection
        • - - - - - -
        • imidctInverse discrete cosine transform (DCT)
        • - - - - - -
        • imlogpolarRemaps an image to log-polar space.
        • - - - - - -
        • imradonCalculates the 2D-Radon transform of the matrix
        • - - - - - -
        • imwatershedPerforms a marker-based image segmentation using the watershed algorithm.
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_9403d96c195fceca1056cc8b5ca17b7d.html b/help/en_US/scilab_en_US_help/section_9403d96c195fceca1056cc8b5ca17b7d.html deleted file mode 100644 index a59317e..0000000 --- a/help/en_US/scilab_en_US_help/section_9403d96c195fceca1056cc8b5ca17b7d.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - -
        - - - - -
        - << Morphological Operations - - - IPCV - - - Object Tracking >> - -
        -
        -
        - - - - IPCV >> Object Detection - -

        -

        Object Detection

        - -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_a618da3583127184bb55dc69995051d2.html b/help/en_US/scilab_en_US_help/section_a618da3583127184bb55dc69995051d2.html deleted file mode 100644 index 0a7e8cd..0000000 --- a/help/en_US/scilab_en_US_help/section_a618da3583127184bb55dc69995051d2.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -
        - - - - -
        - << Deep Learning - - - IPCV - - - Filter Design and Visualization >> - -
        -
        -
        - - - - IPCV >> Feature Detection, Description and Matching - -

        -

        Feature Detection, Description and Matching

        -
        • imbestmatchesFind the best matched features from 2 features objects and the matching matrix
        • - - - - - -
        • imdetect_BRISKDetect features from an image with BRISK algorithm
        • - - - - - -
        • imdetect_FASTDetect features from an image with FAST algorithm. Usually used for corner features.
        • - - - - - -
        • imdetect_GFTTDetect features from an image with GFTT algorithm
        • - - - - - -
        • imdetect_MSERDetect features from an image with MSER algorithm
        • - - - - - -
        • imdetect_ORBDetect features from an image with ORB algorithm
        • - - - - - -
        • imdetect_SIFTDetect features from an image with SIFT algorithm
        • - - - - - -
        • imdetect_STARDetect features from an image with STAR algorithm
        • - - - - - -
        • imdetect_SURFDetect features from an image with SURF algorithm
        • - - - - - -
        • imdrawmatchesDraw matching result for 2 images
        • - - - - - -
        • imextract_DescriptorBRISKComputes the descriptors for a set of keypoints detected in an image with BRISK method.
        • - - - - - -
        • imextract_DescriptorORBComputes the descriptors for a set of keypoints detected in an image with ORB method.
        • - - - - - -
        • imextract_DescriptorSIFTComputes the descriptors for a set of keypoints detected in an image with SIFT method.
        • - - - - - -
        • imextract_DescriptorSURFComputes the descriptors for a set of keypoints detected in an image with SURF method.
        • - - - - - -
        • immatch_BruteForceBrute-force matcher for features matching.
        • - - - - - -
        • plotfeaturePlot the features detected by feature detectors
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_a856b6440c6c9c30937b3cdc7209c1fd.html b/help/en_US/scilab_en_US_help/section_a856b6440c6c9c30937b3cdc7209c1fd.html deleted file mode 100644 index 2f46241..0000000 --- a/help/en_US/scilab_en_US_help/section_a856b6440c6c9c30937b3cdc7209c1fd.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - IPCV >> Image Linear Filtering - -

        -

        Image Linear Filtering

        -
        • filter22D digital filtering
        • - - - - - -
        • fspecialCreate some 2D special filters
        • - - - - - -
        • imfilterImage filtering
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_adf07e817d9d0496c57b506225b9c36a.html b/help/en_US/scilab_en_US_help/section_adf07e817d9d0496c57b506225b9c36a.html deleted file mode 100644 index 4a4018c..0000000 --- a/help/en_US/scilab_en_US_help/section_adf07e817d9d0496c57b506225b9c36a.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - IPCV >> Deep Learning - -

        -

        Deep Learning

        -
        • dnn_forwardRuns forward pass to compute output of layer with name layer_name
        • - - - - - -
        • dnn_getparamGet the layer's parameters
        • - - - - - -
        • dnn_listList all loaded DNN models in memory
        • - - - - - -
        • dnn_readmodelRead/Import DNN model from disk
        • - - - - - -
        • dnn_showfeatureVisualize the DNN feature map
        • - - - - - -
        • dnn_showparamVisualize the DNN parameters (filter) in spatial domain
        • - - - - - -
        • dnn_showparamf2dVisualize the DNN parameters (filter) in frequency domain (2D)
        • - - - - - -
        • dnn_showparamf3dVisualize the DNN parameters (filter) in frequency domain (3D)
        • - - - - - -
        • dnn_unloadallmodelsUnload all loaded DNN models from memory
        • - - - - - -
        • dnn_unloadmodelUnload DNN model from memory
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_b95bf00231e55950a8e2df6626309e22.html b/help/en_US/scilab_en_US_help/section_b95bf00231e55950a8e2df6626309e22.html deleted file mode 100644 index 4efb9d9..0000000 --- a/help/en_US/scilab_en_US_help/section_b95bf00231e55950a8e2df6626309e22.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - IPCV >> Image Arithmetic - -

        -

        Image Arithmetic

        -
        • imabsdiffCalculate absolute difference of two images
        • - - - - - -
        • imaddAdd two images or add a constant to an image
        • - - - - - -
        • imcomplementComplement image
        • - - - - - -
        • imdivideDivide two images or divide an image by an constant.
        • - - - - - -
        • imlincombLinear combination of images
        • - - - - - -
        • immultiplyMultiply two images or multiply an image by an constant.
        • - - - - - -
        • imsubtractSubtract two images or subtract a constant from an image
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_bf80dd6ddc127dff4b18eea728413764.html b/help/en_US/scilab_en_US_help/section_bf80dd6ddc127dff4b18eea728413764.html deleted file mode 100644 index bfea18a..0000000 --- a/help/en_US/scilab_en_US_help/section_bf80dd6ddc127dff4b18eea728413764.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - IPCV >> Spatial Transformations - -

        -

        Spatial Transformations

        -
        • imcropCrop image
        • - - - - - -
        • imcropmCrop an image using mouse selection
        • - - - - - -
        • impyramidImage pyramid reduction and expansion
        • - - - - - -
        • imresizeResizes image
        • - - - - - -
        • imrotateRotate an image to given angle
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_f5260a15c8fde1a55ccfc32fca1501a1.html b/help/en_US/scilab_en_US_help/section_f5260a15c8fde1a55ccfc32fca1501a1.html deleted file mode 100644 index f91d1da..0000000 --- a/help/en_US/scilab_en_US_help/section_f5260a15c8fde1a55ccfc32fca1501a1.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - -
        - - - - -
        - << Spatial Transformations - - - IPCV - - - Super Resolution >> - -
        -
        -
        - - - - IPCV >> Structural Analysis and Shape Descriptors - -

        -

        Structural Analysis and Shape Descriptors

        - -
        - - - - diff --git a/help/en_US/scilab_en_US_help/section_f56c0f6c4d5eee3288644be24f47b8b6.html b/help/en_US/scilab_en_US_help/section_f56c0f6c4d5eee3288644be24f47b8b6.html deleted file mode 100644 index 62b5dc0..0000000 --- a/help/en_US/scilab_en_US_help/section_f56c0f6c4d5eee3288644be24f47b8b6.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - -
        - - - - -
        - << Analytic Geometry - - - IPCV - - - Deep Learning >> - -
        -
        -
        - - - - IPCV >> Camera Handling - -

        -

        Camera Handling

        -
        • camcloseClose a camera
        • - - - - - -
        • camcloseallClose all opened cameras.
        • - - - - - -
        • camlistopenedShow all opened camera.
        • - - - - - -
        • camopenOpen a camera.
        • - - - - - -
        • camreadGrabs and returns a frame from a camera
        -
        - -
        - - - - - - -
        Report an issue
        - << Analytic Geometry - - - IPCV - - - Deep Learning >> - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/std2.html b/help/en_US/scilab_en_US_help/std2.html deleted file mode 100644 index 4040034..0000000 --- a/help/en_US/scilab_en_US_help/std2.html +++ /dev/null @@ -1,82 +0,0 @@ - - - std2 - - - -
        - - - - -
        - << mean2 - - - Image Analysis and Statistics - - - stdev2 >> - -
        -
        -
        - - - - IPCV >> Image Analysis and Statistics > std2 - -

        -

        std2

        -

        Standard deviation of 2D matrix elements

        - - -

        Syntax

        -
        s = std2(im)
        -s = stdev2(im)
        - -

        Parameters

        -
        im : -

        An matrix/image, which can be integer or double matrix, but must be one channel image.

        -
        s : -

        The standard deviation, a scalar of class double.

        - -

        Description

        -

        std2/stdev2 computes standard deviation of matrix im using stdev(im(:)).

        -

        - -

        See also

        -
        • mean2 — Average/mean of matrix elements
        • -
        • corr2 — 2D correlation coefficient
        - -

        Authors

        -
        • Shiqi Yu
        • -
        • Tan Chin Luh
        -
        - -
        - - - - - - -
        Report an issue
        - << mean2 - - - Image Analysis and Statistics - - - stdev2 >> - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/stdev2.html b/help/en_US/scilab_en_US_help/stdev2.html deleted file mode 100644 index 5b01b70..0000000 --- a/help/en_US/scilab_en_US_help/stdev2.html +++ /dev/null @@ -1,82 +0,0 @@ - - - stdev2 - - - - - - - - IPCV >> Image Analysis and Statistics > stdev2 - -

        -

        stdev2

        -

        Standard deviation of 2D matrix elements

        - - -

        Syntax

        -
        s = std2(im)
        -s = stdev2(im)
        - -

        Parameters

        -
        im : -

        An matrix/image, which can be integer or double matrix, but must be one channel image.

        -
        s : -

        The standard deviation, a scalar of class double.

        - -

        Description

        -

        std2/stdev2 computes standard deviation of matrix im using stdev(im(:)).

        -

        - -

        See also

        -
        • mean2 — Average/mean of matrix elements
        • -
        • corr2 — 2D correlation coefficient
        - -

        Authors

        -
        • Shiqi Yu
        • -
        • Tan Chin Luh
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/style.css b/help/en_US/scilab_en_US_help/style.css deleted file mode 100644 index db524c5..0000000 --- a/help/en_US/scilab_en_US_help/style.css +++ /dev/null @@ -1,386 +0,0 @@ -body { - color:#000000; - background-color:#ffffff; - font-family:sans-serif; - font-size:100%; - margin:5px; - padding:0; - background : url("/img/body.png"); - background-repeat : repeat-x; -} - -.para { - padding-left: 10px; -} - -.refname { - color: #ff6c0a; -} -.refpurpose { - font-size: 110%; -} - -.synopsis { - border: 1px solid #CCCCCC; - width:80%; - padding: 0.5em; -} - -.editbar { - text-align: right; -} - -.term { - color:#A00000; - font-size:100%; - font-weight: 600; -} - -h3 { - color: #0033FF; - font-weight: bold; - font-size:130%; - margin-bottom: 10px; -} - -h4 { - color: #0066FF; - font-weight: bold; - font-size:120%; - margin-bottom: 5px; -} - -h5 { - color: #0099FF; - font-weight: bold; - font-size:110%; - margin-bottom: 1px; -} - -.programlisting { - font-family: monospace; - font-size: 100%; - background-color:#F4F4FF; - border-color:#CCCCCC; - border-style:solid; - border-width:2px medium; - width:90%; - color:#333333; - line-height:120%; - padding:10px; - direction: ltr; -} - -.literal { - font-family: monospace; - font-size: 100%; -} - -.option { - font-family: monospace; - font-style: italic; - font-size: 100%; -} - -.command { - font-family: monospace; - font-size: 100%; - color: #32b9b9; -} - -.function { - font-family: monospace; - font-size: 100%; - color: #32b9b9; - direction: ltr; -} - -.varname { - font-family: monospace; - font-weight: bold; - font-size: 100%; - direction: ltr; -} - -.constant { - font-family: monospace; - font-size: 100%; - color: #da70d6; -} - -a { - color: blue; - text-decoration:none; -} - -a:hover { - text-decoration:underline; -} - -.itemizedlist { - list-style-type: disc; -} - -.inline-list li { - display: inline; - list-style-type: disc; -} - -.vert-list { - list-style-type: disc; -} - -pre { - margin-bottom: 0px; - margin-top: 0px; - direction: ltr; -} - -.leftpart { - position:absolute; - float:left; - width: 186px; - padding: 5px; - font-size: smaller; -} - -.content { - margin-top: 100px; - margin-left: 196px -} - -.container { - margin: 0 auto; - width:1024px; -} - -ul.toc li.list-active { - list-style-type:disc; - font-weight:bold; -} - -ul.toc li.parent { - font-size: 115%; - padding: 5px 0px 5px 11px; - border-bottom: 1px solid #cccccc; - margin-bottom: 5px; -} - -ul.toc li.root { - font-size: 135%; - padding: 5px 0px 5px 11px; - border-bottom: 1px solid #cccccc; - margin-bottom: 5px; -} - -ul.toc li { - font-size: 85%; - margin: 1px 0 1px 1px; - padding: 1px 0 1px 11px; - background-repeat: no-repeat; - background-position: center left; - list-style-type: circle; -} - -.next { - float:right; - text-align: right; -} - -.center { - text-align: center; -} - -.screen { - font-family: monospace; - font-size: 100%; - background-color:#FFFFFF; - border-color:#CCCCCC; - border-style:solid; - border-width:2px medium; - width:90%; - color:#333333; - line-height:120%; - padding:10px; -} - -/* Top and bottom navigation controls on manual pages --------------------- */ -div.manualnavbar { - background-color: #F0F0FF; - color: inherit; - padding: 4px; - margin-bottom: 10px; - direction: ltr; -} -div.manualnavbar .prev { - padding-right: 4px; -} -div.manualnavbar .next { - text-align: right; - padding-left: 4px; -} - -div.manualnavbar .top { - text-align: center; - display: block; -} - -div.manualnavbar hr { - color: #cccccc; - background-color: #cccccc; -} - -/* Footer navigation area ------------------------------------------------- */ - -#pagefooter { - position: relative; - font-size: 75%; - color: inherit; - background-color: #e5e5e5; - width: 100%; -} - -#pagefooterleft { - top: 0px; - left: 0px; - padding: 6px; - margin-right: 30%; -} - -#pagefooterright { - text-align: right; - margin-left: 50%; - padding: 6px; -} -#footnav { - color: inherit; - background-color: #9999cc; - border-width: 1px 0px; - border-color: #333366; - border-style: solid; - text-align: right; - padding-right: 6px; -} - - - - - #global{ -/* width: 90%; */ - max-width: 90em; -/* min-width: 850px; */ - margin-left: auto; - margin-right: auto; - } - - #myHeader{ - background-color:#000000; - color:white; - margin-bottom : 10px; - position : relative; - text-align: center; -/* width : 1024px;*/ - height : 100px; - padding-left : 20px; - background : url("https://atoms.scilab.org/images/homepage/cadre_head.png"); - background-repeat : no-repeat; - background-position : 0px 0px; - - } - - #myFooter{ - background-color:#E5E5E5; - font-color:black; -/* width: 90%;*/ - max-width: 90em; -/* min-width: 850px; - margin-left: 5%; - margin-right: 5%;*/ - margin-top:10px; - padding:10px; - } - - #mainArea{ - width: 100%; - overflow: hidden; - } - - #myLeftArea{ - color:white; - float: left; - width: 180px; - padding:5px; - } - - #myMiddleArea{ - color:black; - margin-left: 200px; - padding: 10px 20px; - } - - #myRightArea{ - color:white; - float: right; - width: 200px; - padding: 12px 20px; - } - - -div#cadre_head -{ - position : relative; - text-align: center; -/* width : 1024px;*/ - height : 100px; - padding-left : 20px; - background : url("/img/cadre_head.png"); - background-repeat : no-repeat; - background-position : 0px 0px; -} - - -div#slogan{ - position: absolute; - top : 50px; - left:251px; - color:#0000AA; - font: 120%, Georgia,Serif; -} -div#cadre_help -{ - position: absolute; - top:45px; - right:0px; - font-size:0.8em; - color:#0000AA; -} -table -{ - border-collapse:collapse -} -th, td { - padding: 4px; -} -table.revhistory -{ - width:90%; - border-color:#CCCCCC; - border-style:solid; - border-width:2px medium; - margin-bottom: 10px; -} - -table.revhistory tr.title td -{ - background-color: #CCCCEE; - font-weight: bold; -} - -td.revnumber -{ - vertical-align: top; -} -tr -{ - vertical-align: top; -} diff --git a/help/en_US/scilab_en_US_help/sub2cart.html b/help/en_US/scilab_en_US_help/sub2cart.html deleted file mode 100644 index 3ed4968..0000000 --- a/help/en_US/scilab_en_US_help/sub2cart.html +++ /dev/null @@ -1,98 +0,0 @@ - - - sub2cart - - - - - - - - IPCV >> Utilities and Interactive Tools > sub2cart - -

        -

        sub2cart

        -

        Convert from matrix subscript notation to cartesian coordinate in pixel mode

        - - -

        Syntax

        -
        [cart_x,cart_y] = sub2cart(dim, sub_r,sub_c)
        - -

        Parameters

        -
        dim : -

        Dimention of the Scilab matrix (first 2 dim of the matrix) in row and column format.

        -
        varargin : -

        Input could be in sub_r and sub_c pairs (each in m x 1 matrix), or in m x 2 matrix which consist of [sub_r sub_c]

        -
        sub_r : -

        Row index ins ubscript notation

        -
        sub_c : -

        Column index ins ubscript notation

        -
        varargout : -

        Output in cart_x and cart_y pairs or matrix of [cart_x cart_y] following in the input format

        -
        cart_x : -

        X in cartesian coordinate system

        -
        cart_y : -

        Y in cartesian coordinate system

        - -

        Description

        -

        This function used to convert from matrix subscript notation to cartesian coordinate in pixel mode.

        -

        - -

        Examples

        -
        S = rand(10,10);
        -S2 = repmat(S,[1,1,3]);
        -S2(3,4,:) = [1,0,0];
        -imshow(S2);
        -sub_r = 3; sub_c = 4;
        -[cart_x,cart_y] = sub2cart([10 10], sub_r,sub_c)
        -plot(cart_x,cart_y, 'bx');
        - -

        See also

        -
        • rect2cart — Convert from image rectangular coordinate to cartesian coordinate in pixel mode
        - -

        Authors

        -
        • Tan Chin Luh
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/tifread.html b/help/en_US/scilab_en_US_help/tifread.html deleted file mode 100644 index 903e687..0000000 --- a/help/en_US/scilab_en_US_help/tifread.html +++ /dev/null @@ -1,82 +0,0 @@ - - - tifread - - - - - - - - IPCV >> Image Reading, Display and Exploration > tifread - -

        -

        tifread

        -

        Special function to read 12-bits 1024x1024 CCD image

        - - -

        Calling Sequence

        -
        y = tifread(fn)
        - -

        Parameters

        -
        fn : -

        Tiff image file name

        -
        y : -

        Imported image

        - -

        Description

        -

        This function is experimental, to read in fixed size of 12 bits tif image file

        -

        - -

        Examples

        -
        - -

        See also

        -
        - -

        Authors

        -
        • Copyright (C) 2012 - Trity Technologies.
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/warpmatselect.html b/help/en_US/scilab_en_US_help/warpmatselect.html deleted file mode 100644 index 130040e..0000000 --- a/help/en_US/scilab_en_US_help/warpmatselect.html +++ /dev/null @@ -1,87 +0,0 @@ - - - warpmatselect - - - - - - - - IPCV >> Image Registration and Image Fusion > warpmatselect - -

        -

        warpmatselect

        -

        Selecting points for image transformation

        - - -

        Syntax

        -
        pts = warpmatselect(S,n)
        - -

        Parameters

        -
        S : -

        Input image

        -
        n : -

        Number of points to be selected

        -
        pts : -

        Returned points in image coordinates

        - -

        Description

        -

        This function allows user to select points of references on image for registration purpose. -The returned parameters are in image coordinates form.

        -

        - -

        Examples

        -
        S = imread(fullpath(getIPCVpath() + "/images/balloons.png"));
        -pts = warpmatselect(S,3)
        - -

        See also

        -
        • imgettransform — Get transformation matrix from given source and destination points
        • -
        • imtransform — Image affine transformation
        - -

        Authors

        -
        • Tan Chin Luh
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/xml_code.css b/help/en_US/scilab_en_US_help/xml_code.css deleted file mode 100644 index 9e4c27f..0000000 --- a/help/en_US/scilab_en_US_help/xml_code.css +++ /dev/null @@ -1,94 +0,0 @@ -.xmlcomment { - font-style: italic; - color: #01a801 -} - -.xmldefault { - font-style: normal; - color: #000000 -} - -.xmlentity { - font-style: normal; - color: #ffaa00 -} - -.xmlopeninstr { - font-style: normal; - color: #000000 -} - -.xmlcloseinstr { - font-style: normal; - color: #000000 -} - -.xmlinstrname { - font-style: normal; - color: #9965a6 -} - -.xmllowtag { - font-style: normal; - color: #000000 -} - -.xmltagname { - font-style: normal; - color: #0303ff -} - -.xmllowclose { - font-style: normal; - color: #000000 -} - -.xmlopencomment { - font-style: italic; - color: #01a801 -} - -.xmlcommentend { - font-style: italic; - color: #01a801 -} - -.xmlcomment { - font-style: italic; - color: #01a801 -} - -.xmlopencdata { - font-style: normal; - color: #c45555 -} - -.xmlcdataend { - font-style: normal; - color: #c45555 -} - -.xmlcdata { - font-style: normal; - color: #000000 -} - -.xmlattributename { - font-style: normal; - color: #9965a6 -} - -.xmlequal { - font-style: normal; - color: #000000 -} - -.xmlattributevalue { - font-style: normal; - color: #973964 -} - -.xmlautoclose { - font-style: normal; - color: #000000 -} diff --git a/help/en_US/scilab_en_US_help/xs2im.html b/help/en_US/scilab_en_US_help/xs2im.html deleted file mode 100644 index c673fd7..0000000 --- a/help/en_US/scilab_en_US_help/xs2im.html +++ /dev/null @@ -1,88 +0,0 @@ - - - xs2im - - - - - - - - IPCV >> Image Types and Color Space Conversions > xs2im - -

        -

        xs2im

        -

        Convert graphics to an image matrix.

        - - -

        Syntax

        -
        im = xs2im(win_num,[color])
        - -

        Parameters

        -
        win_num : -

        Integer scalar or vector.

        -
        color : -

        Optional integer. 0 means black and white and 1 means color. The default value is 1.

        -
        im : -

        The returned image, uint8 type hyper-matrix.

        - -

        Description

        -

        xs2im convert the recorded graphics of the window win_num to an image matrix. This function works only if the selected driver is "Rec" in the window win_num or if the window is in "new style".

        -

        - -

        Examples

        -
        scf(0)
        -plot2d()
        -im = xs2im(0);
        -imshow(im);
        - -

        See also

        -
        • im2double — Convert image to double precision
        - -

        Authors

        -
        • Shiqi Yu
        • -
        • Tan Chin Luh
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/ycbcr2rgb.html b/help/en_US/scilab_en_US_help/ycbcr2rgb.html deleted file mode 100644 index dcc1626..0000000 --- a/help/en_US/scilab_en_US_help/ycbcr2rgb.html +++ /dev/null @@ -1,95 +0,0 @@ - - - ycbcr2rgb - - - - - - - - IPCV >> Image Types and Color Space Conversions > ycbcr2rgb - -

        -

        ycbcr2rgb

        -

        Convert a YCbCr image to the equivalent RGB image.

        - - -

        Syntax

        -
        RGB = ycbcr2rgb(YCC)
        - -

        Parameters

        -
        YCC : -

        A YCbCr image (hypermat). The dimension of YCbCr should be M x N x 3 , the type should be double and the element value range should be [0,1].

        -
        RGB : -

        Output image, which has the same size as YCC and type of double.

        - -

        Description

        -

        ycbcr2rgb convert a RGB image to the equivalent YCbCr image using:

        -

        R = Y + 1.403*(Cr - 0.5)

        -

        G = Y - 0.344*(Cr - 0.5) - 0.714*(Cb - 0.5)

        -

        B = Y + 1.773*(Cb - 0.5)

        -

        - -

        Examples

        -
        RGB = imread(fullpath(getIPCVpath() + "/images/baboon.png"));
        -YCC = rgb2ycbcr(RGB);
        -RGB = ycbcr2rgb(YCC);
        -imshow(RGB);
        - -

        See also

        -
        • rgb2gray — Convert RGB images to gray images
        • -
        • mat2gray — Convert matrix to grayscale image
        • -
        • rgb2hsv — Convert a RGB image to the equivalent HSV image
        • -
        • hsv2rgb — Convert a HSV image to the equivalent RGB image.
        • -
        • rgb2ycbcr — Convert a RGB image to the equivalent YCbCr image.
        • -
        • rgb2ntsc — Convert a RGB image to the equivalent NTSC image YIQ.
        • -
        • ntsc2rgb — Convert a NTSC image to the equivalent RGB image.
        - -

        Authors

        -
        • Shiqi Yu
        • -
        • Tan Chin Luh
        -
        - - - - diff --git a/images/puffin.png b/images/puffin.png index 67ddaaf..cf2e671 100644 Binary files a/images/puffin.png and b/images/puffin.png differ diff --git a/macros/dnn_showfeature.sci b/macros/dnn_showfeature.sci index c991726..5d5b51c 100644 --- a/macros/dnn_showfeature.sci +++ b/macros/dnn_showfeature.sci @@ -48,11 +48,11 @@ function dnn_showfeature(feature_map,out_num,c) if rhs < 1; error("At least 1 argument expected, activation output map."); end if rhs < 2; out_num = %inf; end - if rhs < 3; c = jetcolormap(256); end + if rhs < 3; c = jet(256); end // Check for empty optional inputs if isempty(out_num); out_num = %inf; end - if isempty(c); c = jetcolormap(256); end + if isempty(c); c = jet(256); end drawlater(); feature_map_n = (feature_map - min(feature_map))./(max(feature_map)-min(feature_map)).*255; diff --git a/macros/dnn_showparam.sci b/macros/dnn_showparam.sci index 06d5cad..751c2b4 100644 --- a/macros/dnn_showparam.sci +++ b/macros/dnn_showparam.sci @@ -48,11 +48,11 @@ function dnn_showparam(para_map,out_num,c) if rhs < 1; error("At least 1 argument expected, activation output map."); end if rhs < 2; out_num = %inf; end - if rhs < 3; c = jetcolormap(256); end + if rhs < 3; c = jet(256); end // Check for empty optional inputs if isempty(out_num); out_num = %inf; end - if isempty(c); c = jetcolormap(256); end + if isempty(c); c = jet(256); end drawlater(); para_map_n = (para_map - min(para_map))./(max(para_map)-min(para_map)).*255; diff --git a/macros/dnn_showparamf2d.sci b/macros/dnn_showparamf2d.sci index 8e8e461..08e0ac7 100644 --- a/macros/dnn_showparamf2d.sci +++ b/macros/dnn_showparamf2d.sci @@ -48,11 +48,11 @@ function dnn_showparamf2d(para_map,out_num,c) if rhs < 1; error("At least 1 argument expected, activation output map."); end if rhs < 2; out_num = %inf; end - if rhs < 3; c = jetcolormap(256); end + if rhs < 3; c = jet(256); end // Check for empty optional inputs if isempty(out_num); out_num = %inf; end - if isempty(c); c = jetcolormap(256); end + if isempty(c); c = jet(256); end drawlater(); para_map_n = para_map; //(para_map - min(para_map))./(max(para_map)-min(para_map)).*255; diff --git a/macros/dnn_showparamf3d.sci b/macros/dnn_showparamf3d.sci index f7727b9..aaf670b 100644 --- a/macros/dnn_showparamf3d.sci +++ b/macros/dnn_showparamf3d.sci @@ -49,7 +49,7 @@ function [] = dnn_showparamf3d(para_map,out_num,c) out_num = %inf; end; if rhs<3 then - c = jetcolormap(256); + c = jet(256); end; // Check for empty optional inputs @@ -57,7 +57,7 @@ function [] = dnn_showparamf3d(para_map,out_num,c) out_num = %inf; end; if isempty(c) then - c = jetcolormap(256); + c = jet(256); end; drawlater; diff --git a/macros/imblobprop.sci b/macros/imblobprop.sci index b39b92f..0f4fa91 100644 --- a/macros/imblobprop.sci +++ b/macros/imblobprop.sci @@ -23,7 +23,7 @@ function [A, BB, ctr] = imblobprop(imin) // se = imcreatese('ellipse',15,15); // A_dilate = imdilate(A_edge,se); // [A_labeled,n] = imlabel(A_dilate); - // imshow(A_labeled,jetcolormap(n)); + // imshow(A_labeled,jet(n)); // [Area, BB, ctr] = imblobprop(A_labeled); // imrects(BB,[255,0,0]); // diff --git a/macros/imcontour2label.sci b/macros/imcontour2label.sci index 6d16023..d44b89f 100644 --- a/macros/imcontour2label.sci +++ b/macros/imcontour2label.sci @@ -21,7 +21,7 @@ function So = imcontour2label(S,Sc) // Sbw = im2bw(S,0.5); // Sc = imfindContours(Sbw); // So = imcontour2label(S,Sc); - // imshow(So,rainbowcolormap(size(Sc))); + // imshow(So,rainbow(size(Sc))); // // See also // imfindContours diff --git a/macros/imdct.sci b/macros/imdct.sci index c6cc276..4508cf0 100644 --- a/macros/imdct.sci +++ b/macros/imdct.sci @@ -18,7 +18,7 @@ function y = imdct(x) // Examples // S = imread(fullpath(getIPCVpath() + "/images/measure_gray.jpg")); // y = imdct(S); - // imshow(y,jetcolormap(256)); + // imshow(y,jet(256)); // // See also // imidct diff --git a/macros/imdrawContours.sci b/macros/imdrawContours.sci index 4b3dae3..892e713 100644 --- a/macros/imdrawContours.sci +++ b/macros/imdrawContours.sci @@ -40,10 +40,10 @@ function So = imdrawContours(Slabel,colormap,thickness) rhs=argn(2); total = max(Slabel); // Error Checking - if rhs < 2; colormap = rainbowcolormap(2^nextpow2(total)); end + if rhs < 2; colormap = rainbow(2^nextpow2(total)); end if rhs < 3; thickness = 5; end - if colormap ==[]; colormap = rainbowcolormap(2^nextpow2(total));end + if colormap ==[]; colormap = rainbow(2^nextpow2(total));end se = imcreatese('ellipse',thickness,thickness); diff --git a/macros/imhough.sci b/macros/imhough.sci index fafef7d..6e1c6fa 100644 --- a/macros/imhough.sci +++ b/macros/imhough.sci @@ -21,7 +21,7 @@ function [HM, rho, th2] = imhough(S) // S = imread(fullpath(getIPCVpath() + "/images/2lines.png")); // [HM, rho, th] = imhough(S); // scf();Sgrayplot(th,rho,HM',strf="021"); - // xset("colormap",hotcolormap(64)) + // xset("colormap",hot(64)) // // See also // imradon diff --git a/macros/imidct.sci b/macros/imidct.sci index 3524400..003b5e5 100644 --- a/macros/imidct.sci +++ b/macros/imidct.sci @@ -20,7 +20,7 @@ function y = imidct(x) // y = imdct(S); // y2 = zeros(y); // y2(1:100,1:100) = y(1:100,1:100); - // imshow(y2,jetcolormap(256)); + // imshow(y2,jet(256)); // S2 = imidct(y2); // imshow(S2./255); // diff --git a/macros/imlabel.sci b/macros/imlabel.sci index 8fbaabe..01f4ec3 100644 --- a/macros/imlabel.sci +++ b/macros/imlabel.sci @@ -23,7 +23,7 @@ function [imout,n] = imlabel(imin) // se = imcreatese('ellipse',15,15); // A_dilate = imdilate(A_edge,se); // [A_labeled,n] = imlabel(A_dilate); - // imshow(A_labeled,jetcolormap(n)); + // imshow(A_labeled,jet(n)); // // See also // imblobprop diff --git a/macros/implotContours.sci b/macros/implotContours.sci index ff8814b..a205077 100644 --- a/macros/implotContours.sci +++ b/macros/implotContours.sci @@ -41,7 +41,7 @@ function implotContours(img, cntr, thickness) f = gcf(); f.visible = 'off'; - f.color_map = hsvcolormap(size(cntr)); + f.color_map = hsv(size(cntr)); imshow(img); for i = 1:size(cntr) cntr_cart = rect2cart(size(S)(1:2), cntr(i)); diff --git a/macros/imradon.sci b/macros/imradon.sci index 49fa292..cfb3371 100644 --- a/macros/imradon.sci +++ b/macros/imradon.sci @@ -25,7 +25,7 @@ function [RT,xp] = imradon (I,theta) // I = zeros(100,100); // I(25:75, 25:75) = 1; // [RT,xp] = imradon(I); - // imshow(RT,hotcolormap(64)); + // imshow(RT,hot(64)); // // See also // imhough diff --git a/macros/imread.sci b/macros/imread.sci index 331c52b..1642528 100644 --- a/macros/imread.sci +++ b/macros/imread.sci @@ -1,6 +1,7 @@ //============================================================================= // IPCV - Scilab Image Processing and Computer Vision toolbox // Copyright (C) 2017 Tan Chin Luh +// Copyright (C) 2025 - UTC - Stéphane Mottelet //============================================================================= function S = imread(fn,modes) // Reads image file - Add modes support @@ -11,8 +12,9 @@ function S = imread(fn,modes) // im = imread(url) // // Parameters - // filename,url : A string, the image filename or a valid URL to be read. For the case of URL, the full syntax must be used. For example, "http://www.tritytech.com/images/phocagallery/roll8_ScilabIOT.png". + // filename,url : A string, the image filename or a valid URL to be read. For the case of URL, the full syntax must be used. For example, "https://gitlab.com/uploads/-/system/project/avatar/3330423/puffin.png". // modes : imread mode to be specified for different image format + // // im : All images will be converted to gray images or RGB images. For gray images, this is a MxN unsigned char matrix; For RGB images, this is a MxNx3 unsigned char matrix. // // Description @@ -21,11 +23,41 @@ function S = imread(fn,modes) // im = imread(filename) // // reads image in filename into im matrix. If filename contains a truecolor image, im is a MxNx3 hypermatrix, so for example im(:,:,1) stands for the red channel. For gray images, im is a MxNx1 unsigned char matrix. + // + // The imread mode can be controlled by setting any of these optional arguments to 1: + // + // IMREAD_UNCHANGED (return the loaded image as is (with alpha channel, otherwise it gets cropped). Ignore EXIF orientation) + // + // IMREAD_GRAYSCALE (convert image to the single channel grayscale image) + // + // IMREAD_COLOR (convert image to the 3 channel color image) + // + // IMREAD_ANYDEPTH (return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit) + // + // IMREAD_ANYCOLOR (the image is read in any possible color format) + // + // IMREAD_LOAD_GDAL (use the gdal driver for loading the image) + // + // IMREAD_REDUCED_GRAYSCALE_2 (convert image to the single channel grayscale image and the image size reduced 1/2) + // + // IMREAD_REDUCED_COLOR_2 (convert image to the 3 channelcolor image and the image size reduced 1/2) + // + // IMREAD_REDUCED_GRAYSCALE_4 (convert image to the single channel grayscale image and the image size reduced 1/4) + // + // IMREAD_REDUCED_COLOR_4 (convert image to the 3 channelcolor image and the image size reduced 1/4) + // + // IMREAD_REDUCED_GRAYSCALE_8 (convert image to the single channel grayscale image and the image size reduced 1/8) + // + // IMREAD_REDUCED_COLOR_8 (convert image to the 3 channelcolor image and the image size reduced 1/8) + // + // IMREAD_IGNORE_ORIENTATION (do not rotate the image according to EXIF's orientation flag) // // Examples // im = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png')); // imshow(im); - // + // + // im = imread(fullpath(getIPCVpath() + "/images/" + 'puffin.png'),IMREAD_UNCHANGED=1); + // imshow(im); // See also // imwrite // imshow @@ -40,7 +72,8 @@ function S = imread(fn,modes) rhs = argn(2); if rhs < 1 then error("Expect at least 1 argument, N, which is the Network topology"); end; - if rhs == 1 then IMREAD_ANYDEPTH=1,IMREAD_ANYCOLOR = 1, end + if rhs == 1 then IMREAD_ANYCOLOR=1,IMREAD_ANYDEPTH=1 end + if ~isdef('IMREAD_UNCHANGED')|IMREAD_UNCHANGED==[] then IMREAD_UNCHANGED = 0;end; if ~isdef('IMREAD_GRAYSCALE')|IMREAD_GRAYSCALE==[] then IMREAD_GRAYSCALE = 0;end; if ~isdef('IMREAD_COLOR')|IMREAD_COLOR==[] then IMREAD_COLOR = 0;end; if ~isdef('IMREAD_ANYDEPTH')|IMREAD_ANYDEPTH==[] then IMREAD_ANYDEPTH = 0;end; @@ -54,22 +87,22 @@ function S = imread(fn,modes) if ~isdef('IMREAD_REDUCED_COLOR_8')|IMREAD_REDUCED_COLOR_8==[] then IMREAD_REDUCED_COLOR_8 = 0;end; if ~isdef('IMREAD_IGNORE_ORIENTATION')|IMREAD_IGNORE_ORIENTATION==[] then IMREAD_IGNORE_ORIENTATION = 0;end; - modes = IMREAD_GRAYSCALE * uint8(0) | .. - IMREAD_COLOR * uint8(1) | .. - IMREAD_ANYDEPTH * uint8(2) | .. - IMREAD_ANYCOLOR * uint8(4) | .. - IMREAD_LOAD_GDAL * uint8(8) | .. - IMREAD_REDUCED_GRAYSCALE_2 * uint8(16) | .. - IMREAD_REDUCED_COLOR_2 * uint8(17) | .. - IMREAD_REDUCED_GRAYSCALE_4 * uint8(32) | .. - IMREAD_REDUCED_COLOR_4 * uint8(33) | .. - IMREAD_REDUCED_GRAYSCALE_8 * uint8(64) | .. - IMREAD_REDUCED_COLOR_8 * uint8(65) | .. - IMREAD_IGNORE_ORIENTATION * uint8(128) - + modes = IMREAD_UNCHANGED * int8(-1) | .. + IMREAD_GRAYSCALE * int8(0) | .. + IMREAD_COLOR * int8(1) | .. + IMREAD_ANYDEPTH * int8(2) | .. + IMREAD_ANYCOLOR * int8(4) | .. + IMREAD_LOAD_GDAL * int8(8) | .. + IMREAD_REDUCED_GRAYSCALE_2 * int8(16) | .. + IMREAD_REDUCED_COLOR_2 * int8(17) | .. + IMREAD_REDUCED_GRAYSCALE_4 * int8(32) | .. + IMREAD_REDUCED_COLOR_4 * int8(33) | .. + IMREAD_REDUCED_GRAYSCALE_8 * int8(64) | .. + IMREAD_REDUCED_COLOR_8 * int8(65) | .. + IMREAD_IGNORE_ORIENTATION * int8(128) - if grep(fn,'http://') - fn = getURL(fn,TMPDIR) + if [ grep(fn,'http://') grep(fn,'https://') ] + fn = http_get(fn,fullfile(TMPDIR,hash(fn,"md5"))) end S = int_imread(fn,modes); @@ -81,4 +114,4 @@ function S = imread(fn,modes) S = im2bw(S,0.5); end -endfunction +endfunction \ No newline at end of file diff --git a/macros/imsmoothsurf.sci b/macros/imsmoothsurf.sci index dfe1ab9..1ecf237 100644 --- a/macros/imsmoothsurf.sci +++ b/macros/imsmoothsurf.sci @@ -82,7 +82,7 @@ function [] = imsmoothsurf(imin,n,plotop); //plot3d(y,x,imin(ind1,ind2)); f=gcf(); - f.color_map = jetcolormap(256); + f.color_map = jet(256); h.color_flag = 1; f.background = -2; h.hiddencolor=0; diff --git a/macros/imsurf.sci b/macros/imsurf.sci index ab3cb30..796e959 100644 --- a/macros/imsurf.sci +++ b/macros/imsurf.sci @@ -91,7 +91,7 @@ function [] = imsurf(imin,n,plotop); f=gcf(); - f.color_map = jetcolormap(256); + f.color_map = jet(256); h.color_flag = 1; f.background = -2; h.hiddencolor=0; diff --git a/macros/imwatershed.sci b/macros/imwatershed.sci index fd78708..6574669 100644 --- a/macros/imwatershed.sci +++ b/macros/imwatershed.sci @@ -26,7 +26,7 @@ function imout = imwatershed(imin,markers) // [markers,n] = imlabel(dist); // markers(1:5,1:5) = 255; // Sw = imwatershed(S, markers); - // imshow(Sw,hsvcolormap(3)); + // imshow(Sw,hsv(3)); // // See also // imdistransf diff --git a/pax_global_header b/pax_global_header deleted file mode 100644 index 065bae4..0000000 --- a/pax_global_header +++ /dev/null @@ -1 +0,0 @@ -52 comment=936ef77c3ba9cc075a65d63b755ac516c278a7c5 diff --git a/sci_gateway/builder_gateway.sce b/sci_gateway/builder_gateway.sce index 9e8f044..c149d2e 100644 --- a/sci_gateway/builder_gateway.sce +++ b/sci_gateway/builder_gateway.sce @@ -24,7 +24,6 @@ function builder_gateway() languages='cpp'; tbx_builder_gateway_lang(languages, sci_gateway_dir); - tbx_build_gateway_loader(languages, sci_gateway_dir); tbx_build_gateway_clean(languages, sci_gateway_dir); endfunction diff --git a/sci_gateway/cpp/builder_gateway_cpp.sce b/sci_gateway/cpp/builder_gateway_cpp.sce index a370454..bdbab55 100644 --- a/sci_gateway/cpp/builder_gateway_cpp.sce +++ b/sci_gateway/cpp/builder_gateway_cpp.sce @@ -3,7 +3,7 @@ // Copyright (C) 2005-2010 Shiqi Yu // Copyright (C) 2012 - DIGITEO - Allan CORNET // Copyright (C) 2017 - Trity - Tan Chin Luh -// Copyright (C) 2023 - UTC - Stéphane Mottelet +// Copyright (C) 2023-2025 - UTC - Stéphane Mottelet // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -30,7 +30,6 @@ function builder_gateway_cpp() scifunctions_name = strsubst(scifunctions_name, '.cpp', ''); cppfunctions_name = gw_cpp_files(grep(gw_cpp_files,'sci_')); cppfunctions_name = strsubst(cppfunctions_name, '.cpp', ''); - gw_tables = [scifunctions_name, cppfunctions_name]; if getos() == "Windows" @@ -39,19 +38,19 @@ function builder_gateway_cpp() ARCH = unix_g("uname -m"); end - THIRDPARTY=fullpath(fullfile(gw_cpp_path,"..","..","thirdparty",getos(),ARCH)); + THIRDPARTY=fullpath(fullfile(gw_cpp_path,"..","..","thirdparty")); all_libs = []; if getos() == "Windows" - OPENCV_INCLUDE = fullfile(THIRDPARTY,"include"); + OPENCV_INCLUDE = fullfile(THIRDPARTY,"Windows",ARCH,"include"); libs = ["opencv_world450";"opencv_img_hash450"] - all_libs = fullfile(THIRDPARTY,"lib",libs); + all_libs = fullfile("..","..","thirdparty","Windows",ARCH,"lib",libs); else // Darwin, Linux - OPENCV_INCLUDE = fullfile(THIRDPARTY,"include","opencv4"); + OPENCV_INCLUDE = fullfile(THIRDPARTY,getos(),ARCH,"include","opencv4"); gw_cpp_files = [gw_cpp_files; "common.h"]; end - inter_cflags = ilib_include_flag(OPENCV_INCLUDE); + inter_cflags = ilib_include_flag([OPENCV_INCLUDE,gw_cpp_path]); inter_ldflags = ""; tbx_build_gateway('gw_ipcv', .. @@ -62,14 +61,6 @@ function builder_gateway_cpp() inter_ldflags, .. inter_cflags); - if getos() == "Windows" - // remove redundant/harcoded path link in generated loader script - loaderPath = fullfile(gw_cpp_path,"loader.sce"); - loader = mgetl(loaderPath); - loader(grep(loader,["opencv_world";"opencv_img_hash"])) = []; - mputl(loader,loaderPath); - end - endfunction // ==================================================================== builder_gateway_cpp(); @@ -117,6 +108,13 @@ clear builder_gateway_cpp; + + + + + + + diff --git a/sci_gateway/cpp/sci_int_imread.cpp b/sci_gateway/cpp/sci_int_imread.cpp index eb39caa..fdf3018 100644 --- a/sci_gateway/cpp/sci_int_imread.cpp +++ b/sci_gateway/cpp/sci_int_imread.cpp @@ -54,8 +54,8 @@ int sci_int_imread(char * fname,void* pvApiCtx) int iRet = 0; - unsigned char cData = 0; - iRet = getScalarUnsignedInteger8(pvApiCtx, piAddr, &cData); + char cData = 0; + iRet = getScalarInteger8(pvApiCtx, piAddr, &cData); if (iRet) { return iRet; @@ -92,5 +92,4 @@ int sci_int_imread(char * fname,void* pvApiCtx) return 0; -} - +} \ No newline at end of file diff --git a/thirdparty/build/build.bat b/thirdparty/build/build.bat index 02ea3f5..e77111b 100644 --- a/thirdparty/build/build.bat +++ b/thirdparty/build/build.bat @@ -1,37 +1,53 @@ -:: Copyright (C) 2023 - UTC - Stéphane MOTTELET +:: Copyright (C) 2023-2025 - UTC - Stéphane MOTTELET :: This program is free software; you can redistribute it and/or :: modify it under the terms of the GNU General Public :: License as published by the Free Software Foundation; either :: version 2.1 of the License, or (at your option) any later version. :: :: openCV build script for Windows -:: cmake.exe (standalone or Visual Studio cmake.exe) should be in the PATH +:: cmake.exe (standalone or Visual Studio cmake.exe) and ninja.exe should be in the PATH set OPENCV_VER=4.5.0 curl -o opencv.tgz https://codeload.github.com/opencv/opencv/tar.gz/refs/tags/%OPENCV_VER% curl -o opencv_contrib.tgz https://codeload.github.com/opencv/opencv_contrib/tar.gz/refs/tags/%OPENCV_VER% -tar xvzf opencv.tgz -tar xvzf opencv_contrib.tgz +tar -xf opencv.tgz +tar -xf opencv_contrib.tgz +cd .. set THIRDPARTY=%cd% -cd opencv-%OPENCV_VER% +set PREFIX=%THIRDPARTY%\Windows\%PROCESSOR_ARCHITECTURE% +cd build\opencv-%OPENCV_VER% mkdir build cd build -cmake -DCMAKE_INSTALL_PREFIX="%THIRDPARTY%\Windows\%PROCESSOR_ARCHITECTURE%" ^ --DCMAKE_MACOSX_RPATH=ON ^ --DOPENCV_EXTRA_MODULES_PATH="%THIRDPARTY%\opencv_contrib-%OPENCV_VER%\modules" ^ --DWITH_OPENJPEG=OFF ^ +cmake -G Ninja -DCMAKE_INSTALL_PREFIX="%PREFIX%" ^ +-DCMAKE_BUILD_TYPE=Release ^ +-DWITH_VTK=OFF ^ +-DOPENCV_EXTRA_MODULES_PATH="%THIRDPARTY%\build\opencv_contrib-%OPENCV_VER%\modules" ^ +-DBUILD_ZLIB=ON ^ +-DBUILD_JPEG=ON ^ +-DBUILD_WEBP=ON ^ +-DBUILD_PNG=ON ^ +-DBUILD_TIFF=ON ^ +-DBUILD_JASPER=ON ^ +-DBUILD_OPENEXR=ON ^ +-DBUILD_OPENJPEG=ON ^ -DBUILD_opencv_apps=OFF ^ +-DBUILD_opencv_java=OFF ^ +-DBUILD_opencv_python=OFF ^ -DBUILD_opencv_python2=OFF ^ --DBUILD_opencv_world:BOOL=ON ^ +-DBUILD_opencv_python3=OFF ^ +-DBUILD_opencv_python_bindings_g=OFF ^ +-DBUILD_opencv_python_tests=OFF ^ +-DBUILD_opencv_world=ON ^ -DBUILD_opencv_hdf=OFF ^ -DBUILD_opencv_freetype=OFF ^ -DOPENCV_FFMPEG_SKIP_BUILD_CHECK=ON ^ --DBUILD_PERF_TESTS:BOOL=OFF ^ --DBUILD_TESTS:BOOL=OFF ^ --DBUILD_DOCS:BOOL=OFF ^ --DBUILD_EXAMPLES:BOOL=OFF ^ +-DBUILD_PERF_TESTS=OFF ^ +-DBUILD_TESTS=OFF ^ +-DBUILD_DOCS=OFF ^ +-DBUILD_EXAMPLES=OFF ^ -DCMAKE_CXX_FLAGS="/D _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1" ^ .. -cd %THIRDPARTY% -cmake --build opencv-%OPENCV_VER%\build +cd %THIRDPARTY%\build +cmake --build opencv-%OPENCV_VER%\build --config Release cmake --install opencv-%OPENCV_VER%\build +move "%PREFIX%\bin\*.dll" "%PREFIX%\lib" diff --git a/thirdparty/build/build.sh b/thirdparty/build/build.sh old mode 100644 new mode 100755 index 0ee3625..a5fd71f --- a/thirdparty/build/build.sh +++ b/thirdparty/build/build.sh @@ -1,52 +1,68 @@ -# Copyright (C) 2023 - UTC - Stéphane MOTTELET +#!/bin/bash +# Copyright (C) 2023-2025 - UTC - Stéphane MOTTELET # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # openCV build script for Linux and macOS -# cmake should be in the PATH +# cmake and ninja should be in the PATH -cd .. -THIRDPARTY="$(pwd)/$(uname -s)/$(uname -m)" -cd build +THIRDPARTY="$(cd ..; pwd)" +PREFIX="${THIRDPARTY}/$(uname -s)/$(uname -m)" OPENCV_VER=4.5.0 FFMPEG_VER=4.3.6 # ffmpeg build -curl -L https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VER}.tar.gz -o ffmpeg.tar.gz -tar xvzf ffmpeg.tar.gz +[ ! -f opencv-${OPENCV_VER}.tar.gz ] && curl -LO https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VER}.tar.gz +tar -xf ffmpeg-${FFMPEG_VER}.tar.gz cd ffmpeg-${FFMPEG_VER} -./configure --enable-shared --enable-rpath --disable-static --disable-programs --disable-x86asm --prefix="${THIRDPARTY}" +./configure --enable-shared --enable-rpath --disable-static --disable-programs --disable-x86asm --prefix="${PREFIX}" make -j4 make install cd .. # opencv build -curl -L https://github.com/opencv/opencv/archive/refs/tags/${OPENCV_VER}.tar.gz -o opencv.tgz -curl -L https://github.com/opencv/opencv_contrib/archive/refs/tags/${OPENCV_VER}.tar.gz -o opencv_contrib.tgz -tar xvzf opencv.tgz -tar xvzf opencv_contrib.tgz +[ ! -f opencv-${OPENCV_VER}.tar.gz ] && curl -L https://github.com/opencv/opencv/archive/refs/tags/${OPENCV_VER}.tar.gz -o opencv-${OPENCV_VER}.tar.gz +[ ! -f opencv_contrib-${OPENCV_VER}.tar.gz ] && curl -L https://github.com/opencv/opencv_contrib/archive/refs/tags/${OPENCV_VER}.tar.gz -o opencv_contrib-${OPENCV_VER}.tar.gz +tar -xf opencv-${OPENCV_VER}.tar.gz +tar -xf opencv_contrib-${OPENCV_VER}.tar.gz cd opencv-${OPENCV_VER} +rm -rf build mkdir -p build cd build -export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${THIRDPARTY}/lib/pkgconfig" -cmake -DCMAKE_INSTALL_PREFIX="${THIRDPARTY}" \ +export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:${PREFIX}/lib/pkgconfig" +cmake -G Ninja -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ +-DCMAKE_BUILD_TYPE=Release \ +-DWITH_VTK=OFF \ -DCMAKE_MACOSX_RPATH=ON \ --DCMAKE_SHARED_LINKER_FLAGS="-Wl,-rpath,${THIRDPARTY}/lib" \ --DCMAKE_INSTALL_RPATH="${THIRDPARTY}/lib" \ --DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-${OPENCV_VER}/modules \ --DWITH_OPENJPEG=OFF \ +-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-rpath,${PREFIX}/lib" \ +-DCMAKE_INSTALL_RPATH="${PREFIX}/lib" \ +-DOPENCV_EXTRA_MODULES_PATH=${THIRDPARTY}/build/opencv_contrib-${OPENCV_VER}/modules \ +-DBUILD_ZLIB=ON \ +-DBUILD_JPEG=ON \ +-DBUILD_WEBP=ON \ +-DBUILD_PNG=ON \ +-DBUILD_TIFF=ON \ +-DBUILD_JASPER=ON \ +-DBUILD_OPENEXR=ON \ +-DBUILD_OPENJPEG=ON \ -DBUILD_opencv_apps=OFF \ +-DBUILD_opencv_java=OFF \ +-DBUILD_opencv_python=OFF \ -DBUILD_opencv_python2=OFF \ --DBUILD_opencv_world:BOOL=ON \ +-DBUILD_opencv_python3=OFF \ +-DBUILD_opencv_python_bindings_g=OFF \ +-DBUILD_opencv_python_tests=OFF \ +-DBUILD_opencv_world=ON \ -DBUILD_opencv_hdf=OFF \ -DBUILD_opencv_freetype=OFF \ -DOPENCV_FFMPEG_SKIP_BUILD_CHECK=ON \ --DBUILD_PERF_TESTS:BOOL=OFF \ --DBUILD_TESTS:BOOL=OFF \ --DBUILD_DOCS:BOOL=OFF \ --DBUILD_EXAMPLES:BOOL=OFF \ +-DBUILD_PERF_TESTS=OFF \ +-DBUILD_TESTS=OFF \ +-DBUILD_DOCS=OFF \ +-DBUILD_EXAMPLES=OFF \ .. -make -j4 -make install +cd ../.. +cmake --build opencv-${OPENCV_VER}/build --config Release +cmake --install opencv-${OPENCV_VER}/build