Editing Image package
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
The {{Forge|image|image package}} is part of the | The {{Forge|image|image package}} is part of the octave-forge project. See its {{Forge|image|homepage}} for the latest release. | ||
== Development == | == Development == | ||
Follows an incomplete list of stuff missing in the image package to be matlab compatible. Bugs are not listed here, [https://savannah.gnu.org/bugs/?func=search&group=octave search] and [https://savannah.gnu.org/bugs/?func=additem&group=octave report] them on the bug tracker instead. | Follows an incomplete list of stuff missing in the image package to be matlab compatible. Bugs are not listed here, [https://savannah.gnu.org/bugs/?func=search&group=octave search] and [https://savannah.gnu.org/bugs/?func=additem&group=octave report] them on the bug tracker instead. | ||
=== Roadmap === | |||
The following are missing targets for the next minor release of the image package (version 2.8.0). Small bug fixes, build fixes, and regressions may still be released before in a patch release (Version 2.6.X). | |||
* add ellipse properties to {{codeline|regionprops}} (see bug {{bug|44100}}) ([http://hg.code.sf.net/p/octave/image/rev/7cf22a478792 done]) | |||
* speed up {{codeline|regionprops}} for large images with many small objects (probably work around for loop with labeled == labelid) | |||
* support passing {{codeline|bwconncomp}} output to {{codeline|regionprops}} (and then fix {{codeline|bwpropfilt}} to use that instead of a labeled image) | |||
* ND support on {{codeline|imfilter}} | |||
* check if {{codeline|normxcorr2}} is Matlab compatible and investigate making use of {{codeline|fftconvn}} since it's likely to receive large input | |||
* investigate implementing the missing deconvolution functions (see patch {{patch|8571}}) | |||
* anything else that is done or submitted before the above are done | |||
=== Missing functions === | === Missing functions === | ||
Line 13: | Line 23: | ||
* activecontour | * activecontour | ||
* adapthisteq | * adapthisteq | ||
* affine2d | |||
* affine3d | |||
* applycform | * applycform | ||
* axes2pix | |||
* bwconvhull | * bwconvhull | ||
* bwdistgeodesic | * bwdistgeodesic | ||
* bwlookup | * bwlookup | ||
* bwpack | |||
* bwtraceboundary | * bwtraceboundary | ||
* bwulterode | * bwulterode | ||
* | * bwunpack | ||
* convmtx2 | * convmtx2 | ||
* corner | * corner | ||
Line 32: | Line 45: | ||
* deconvlucy | * deconvlucy | ||
* deconvreg | * deconvreg | ||
* deconvwnr | |||
* decorrstretch | * decorrstretch | ||
* | * demosaic | ||
* dicomanon | * dicomanon | ||
* dicomdisp | * dicomdisp | ||
* dicomuid | * dicomuid | ||
* dpxread | |||
* dpxinfo | * dpxinfo | ||
* fan2para | * fan2para | ||
* fanbeam | * fanbeam | ||
Line 54: | Line 68: | ||
* getrect | * getrect | ||
* gradientweight | * gradientweight | ||
* graycoprops | |||
* grayconnected | * grayconnected | ||
* graydiffweight | * graydiffweight | ||
* hdrread | * hdrread | ||
* hdrwrite | * hdrwrite | ||
* houghlines -- (see hough_line) | |||
* houghpeaks | |||
* iccfind | * iccfind | ||
* iccread | * iccread | ||
Line 65: | Line 81: | ||
* idct2 | * idct2 | ||
* ifanbeam | * ifanbeam | ||
* im2java2d | * im2java2d | ||
* ImageAdapter | * ImageAdapter | ||
* imageinfo | * imageinfo | ||
* imapplymatrix | |||
* imapprox | * imapprox | ||
* imbinarize | * imbinarize | ||
Line 81: | Line 95: | ||
* imdistline | * imdistline | ||
* imellipse | * imellipse | ||
* imextendedmax | |||
* imextendedmin | |||
* imfindcircles | |||
* imfreehand | * imfreehand | ||
* imfuse | |||
* imgaborfilt | * imgaborfilt | ||
* imgaussfilt | * imgaussfilt | ||
Line 90: | Line 108: | ||
* imhandles | * imhandles | ||
* imhistmatch | * imhistmatch | ||
* imhmax | |||
* imhmin | |||
* imimposemin | |||
* imline | * imline | ||
* immagbox | * immagbox | ||
Line 95: | Line 116: | ||
* imoverview | * imoverview | ||
* imoverviewpanel | * imoverviewpanel | ||
* | * impixelinfo | ||
* | * impixelinfoval | ||
* impixelregionpanel | |||
* impixelregion | * impixelregion | ||
* implay | * implay | ||
* impoint | * impoint | ||
Line 104: | Line 125: | ||
* improfile | * improfile | ||
* imrect | * imrect | ||
* | * imref2d | ||
* imref3d | |||
* imregconfig | * imregconfig | ||
* imregcorr | * imregcorr | ||
Line 114: | Line 136: | ||
* imsegfmm | * imsegfmm | ||
* imseggeodesic | * imseggeodesic | ||
* imshowpair | |||
* imtool | * imtool | ||
* imwarp | * imwarp | ||
* integralBoxFilter | * integralBoxFilter | ||
* integralBoxFilter3 | * integralBoxFilter3 | ||
* integralImage | |||
* integralImage3 | |||
* interfileinfo | * interfileinfo | ||
* interfileread | * interfileread | ||
Line 134: | Line 159: | ||
* isicc | * isicc | ||
* isrset | * isrset | ||
* makecform | * makecform | ||
* makeConstrainToRectFcn | * makeConstrainToRectFcn | ||
* makehdr | * makehdr | ||
* makeresampler | * makeresampler | ||
* | * multithresh | ||
* nitfinfo | * nitfinfo | ||
* nitfread | * nitfread | ||
* openrset | * openrset | ||
* otsuthresh | |||
* para2fan | * para2fan | ||
* projective2d | * projective2d | ||
* regionfill | * regionfill | ||
* roifill | * roifill | ||
* roifilt2 | * roifilt2 | ||
* | * roipoly | ||
* rsetwrite | * rsetwrite | ||
* ssim | * ssim | ||
Line 156: | Line 180: | ||
* truesize | * truesize | ||
* visboundaries | * visboundaries | ||
* viscircles | |||
* warp | * warp | ||
* | * whitepoint | ||
* | * wiener2 | ||
* | * xyz2double | ||
* xyz2uint16 | |||
</div> | </div> | ||
Line 193: | Line 219: | ||
|- | |- | ||
! bug !! bug title !! status | ! bug !! bug title !! status | ||
|- | |||
| {{bug|38085}} || image package: fails to build with --enable-64 (entropyfilt) || Confirmed | |||
|- | |- | ||
| {{bug|38087}}|| image package: graycomatrix incompatibilities with matlab || None | | {{bug|38087}}|| image package: graycomatrix incompatibilities with matlab || None | ||
|- | |||
| {{bug|38345}}|| image package: __spatial_filtering__() always returns class double || Confirmed | |||
|- | |||
| {{bug|41674}}|| image package: temporary arrays in imresize are doubles || None | |||
|- | |- | ||
| {{bug|43218}}|| image package: imshear causes more signal spread than expected and inconsistent vertical offset || None | | {{bug|43218}}|| image package: imshear causes more signal spread than expected and inconsistent vertical offset || None | ||
|- | |- | ||
| {{bug|44396}}|| image package: bwmorph shrink does not preserve Euler number || Confirmed | | {{bug|44396}}|| image package: bwmorph shrink does not preserve Euler number || Confirmed | ||
|- | |||
| {{bug|44799}}|| image package: imrotate chrashes when using 'spline' as interpolation method || Confirmed | |||
|- | |- | ||
| {{bug|44831}}|| image package: imrotate - different dimensions of output matrix || Confirmed | | {{bug|44831}}|| image package: imrotate - different dimensions of output matrix || Confirmed | ||
|- | |- | ||
| {{bug|45088}}|| image package: rangefilt requires domain and image to have equal number of dimensions || | | {{bug|45088}}|| image package: rangefilt requires domain and image to have equal number of dimensions || Patch Reviewed | ||
|- | |||
| {{bug|46745}}|| image package: imresize default method (bicubic) Matlab incompatible for the border pixels|| None | |||
|- | |- | ||
| {{bug|48529}}|| image package: compilation warnings under Mac OSX|| None | | {{bug|48529}}|| image package: compilation warnings under Mac OSX|| None | ||
|- | |- | ||
| {{bug| | | {{bug|50071}}|| OF image: bwfill(...,4) in Octave behaves like bwfill(...,8) in MATLAB and vice versa|| None | ||
|- | |- | ||
| {{bug|50151}}|| image package: normxcorr2 is not compatible with Matlab|| None | | {{bug|50151}}|| image package: normxcorr2 is not compatible with Matlab|| None | ||
Line 217: | Line 253: | ||
|- | |- | ||
| {{bug|50429}}|| image package: xyz2lab changed slightly in Matlab (and other color conversion functions)|| None | | {{bug|50429}}|| image package: xyz2lab changed slightly in Matlab (and other color conversion functions)|| None | ||
|- | |- | ||
| {{bug|50656}}|| image package: bwerode does not return right size when there's more dimensions on conn || None | | {{bug|50656}}|| image package: bwerode does not return right size when there's more dimensions on conn || None | ||
|- | |- | ||
| {{bug|50708}}|| image package: add demosaic.m || Patch Submitted | | {{bug|50708}}|| image package: add demosaic.m|| Patch Submitted | ||
|- | |- | ||
| {{bug|50732}} || Image package: infinite error loop when assigning a strel (class) object to a vector|| Confirmed | | {{bug|50732}} || Image package: infinite error loop when assigning a strel (class) object to a vector|| Confirmed | ||
|- | |||
| {{bug|50783}} || image package: imlincomb is not compatible with Matlab || none | |||
|- | |||
| {{bug|50874}} || bwdist call causes application crash || Confirmed | |||
|- | |- | ||
| {{bug|51420}} || [octave forge] (image) imrotate is less tolerant to missing argument than Matlab || None | | {{bug|51420}} || [octave forge] (image) imrotate is less tolerant to missing argument than Matlab || None | ||
|- | |- | ||
| {{bug|51719}} || [octave forge] (image) watershed unit test failure || None | | {{bug|51719}} || [octave forge] (image) watershed unit test failure || None | ||
|- | |||
| {{bug|51769}} || [octave forge] (image) imresize bilinear interpolation inaccurate || Patch Submitted | |||
|- | |- | ||
| {{bug|51884}} || [octave forge] (image) bwmorph(blackNwhiteMatrix, "thicken", 1) returns negated result (+ strange behavior at border) || None | | {{bug|51884}} || [octave forge] (image) bwmorph(blackNwhiteMatrix, "thicken", 1) returns negated result (+ strange behavior at border) || None | ||
Line 236: | Line 276: | ||
| {{bug|51980}} || [octave forge] (image) Failing unit test for edge|| None | | {{bug|51980}} || [octave forge] (image) Failing unit test for edge|| None | ||
|- | |- | ||
| {{bug| | | {{bug|51981}} || [octave forge] (image) Failing unit test for otf2psf|| None | ||
|- | |- | ||
| {{bug| | | {{bug|51982}} || [octave forge] (image) Failing unit test for nlfilter|| None | ||
|- | |- | ||
| {{bug| | | {{bug|51986}} || [octave forge] (image) Failing unit test for cp2tform || None | ||
|- | |- | ||
| {{bug|52119}} || [octave forge] (image) Add 'reflect' padding option to imfilter || None | |||
|} | |} | ||
Line 270: | Line 291: | ||
* {{patch|8722}}: implement impixelinfo and impixelinfoval | * {{patch|8722}}: implement impixelinfo and impixelinfoval | ||
* {{patch|8813}}: image package: Extended image I/O for Analyze 7.5 format to handle big-endian images | * {{patch|8813}}: image package: Extended image I/O for Analyze 7.5 format to handle big-endian images | ||
* {{patch|8866}}: image package: add metainfo.xml file for Gnome Software | |||
* {{patch|8571}}: image package: three deconvolution routines (Wiener, RL, RLTV) | * {{patch|8571}}: image package: three deconvolution routines (Wiener, RL, RLTV) | ||
* {{patch| | * {{patch|8824}}: added affine2d class | ||
* {{patch| | * {{patch|9235}}: image package: improve filtering functions (stdfilt, entropyfilt) and add tests (also medfilt2, ordfilt2, rangefilt) | ||
* {{patch| | * {{patch|9244}}: image package: regionprops.m - new properties ConvexHull, ConvexImage, ConvexArea, Solidity | ||
* {{patch| | * {{patch|9354}}: image package: new function wiener2.m | ||
* {{patch| | * {{patch|9360}}: image package: new function otsuthresh.m | ||
* {{patch| | * {{patch|9365}}: image package: new function deconvwnr.m | ||
* {{patch| | * {{patch|9407}}: image package: new function houghpeaks.m | ||
* {{patch| | * {{patch|9412}}: image package: new function houghlines.m | ||
* {{patch|9448}}: image package: new function imfindcircles.m | |||
* {{patch|9449}}: image package: new function viscircles.m | |||
== Image Processing Functions == | == Image Processing Functions (this section is under construction) == | ||
This is a list of Image Processing functions by topic, including missing functions, related bugs and patched, and some alternatives. | |||
This is | Note: This section is under construction so this list is still incomplete | ||
=== Basic Read and Write Image Files === | === Basic Read and Write Image Files === | ||
Line 294: | Line 316: | ||
! Function !! Octave Package Version !! Related Bugs and Patches !! Alternatives !! Notes | ! Function !! Octave Package Version !! Related Bugs and Patches !! Alternatives !! Notes | ||
|- | |- | ||
| imfinfo || function is in Octave core | | imfinfo || function is in Octave core || || | ||
|- | |- | ||
| imread|| function is in Octave core || || [http://kyamagu.github.io/mexopencv/matlab/imread.html cv.imread] from [https://github.com/kyamagu/mexopencv mexopencv] || | | imread|| function is in Octave core || || [http://kyamagu.github.io/mexopencv/matlab/imread.html cv.imread] from [https://github.com/kyamagu/mexopencv mexopencv] || | ||
Line 303: | Line 325: | ||
|- | |- | ||
|} | |} | ||
=== Type Conversion === | === Type Conversion === | ||
Line 319: | Line 334: | ||
| adaptthresh || - || || [http://kyamagu.github.io/mexopencv/matlab/adaptiveThreshold.html cv.adaptiveThreshold] from [https://github.com/kyamagu/mexopencv mexopencv]|| | | adaptthresh || - || || [http://kyamagu.github.io/mexopencv/matlab/adaptiveThreshold.html cv.adaptiveThreshold] from [https://github.com/kyamagu/mexopencv mexopencv]|| | ||
|- | |- | ||
| demosaic || - || {{bug|50708 | | demosaic || - || {{bug|50708}} || [http://kyamagu.github.io/mexopencv/matlab/demosaicing.html cv.demosaicing] from [https://github.com/kyamagu/mexopencv mexopencv] || | ||
|- | |- | ||
| gray2ind || | | gray2ind || 2.6.1 || || || | ||
|- | |- | ||
| grayslice || | | grayslice || 2.6.1 || || || | ||
|- | |- | ||
| graythresh || | | graythresh || 2.6.1 || || || Octave version has more methods | ||
|- | |- | ||
| im2double || | | im2double || 2.6.1 || || || | ||
|- | |- | ||
| im2int16 || 2. | | im2int16 || 2.6.1 || || || | ||
|- | |- | ||
| im2java2d || - || || || | | im2java2d || - || || || | ||
|- | |- | ||
| im2single || 2. | | im2single || 2.6.1 || || || | ||
|- | |- | ||
| im2uint16 || | | im2uint16 || 2.6.1 || || || | ||
|- | |- | ||
| im2uint8 || | | im2uint8 || 2.6.1 || || || | ||
|- | |- | ||
| imbinarize || - || || imbinarize (I) is equivalent to im2bw(I, graythresh(I)), | | imbinarize || - || || imbinarize (I) is equivalent to im2bw(I, graythresh(I)), | ||
Line 343: | Line 358: | ||
|| | || | ||
|- | |- | ||
| imcast | | imcast || 2.6.1 || || || Octave Only | ||
| | |||
| | |||
|- | |- | ||
| | | imquantize || 2.6.1 || || || | ||
|- | |- | ||
| | | ind2gray || 2.6.1 || || || | ||
|- | |- | ||
| | | ind2rgb || 2.6.1 || || || | ||
|- | |- | ||
| | | label2rgb || 2.6.1 || || || | ||
|- | |- | ||
| | | mat2gray || 2.6.1 || || || | ||
|- | |- | ||
| | | multithresh || - || || || | ||
|- | |- | ||
| | | otsuthresh || - || {{patch|9360}} || graythresh || otsuthresh(hist) is equivalent to graythresh (hist) | ||
|- | |- | ||
| | | rgb2gray || 2.6.1 || || || | ||
|- | |- | ||
| rgb2ind || 2.6.1 || || || | |||
|- | |- | ||
|} | |} | ||
=== Image Filtering === | === Image Filtering === | ||
Line 486: | Line 386: | ||
! Function !! Octave Package Version !! Related Bugs and Patches !! Alternatives || Notes | ! Function !! Octave Package Version !! Related Bugs and Patches !! Alternatives || Notes | ||
|- | |- | ||
| bwareafilt|| 2. | | bwareafilt|| 2.6.1 || || || | ||
|- | |- | ||
| bwpropfilt || 2. | | bwpropfilt || 2.6.1 || || || | ||
|- | |- | ||
| convmtx2 || - || || || | | convmtx2 || - || || || | ||
|- | |- | ||
| entropyfilt || | | entropyfilt || 2.6.1 || {{patch|9235}} || || | ||
|- | |- | ||
| fibermetric ||- || || || | | fibermetric ||- || || || | ||
Line 500: | Line 400: | ||
| fsamp2 || - || || || | | fsamp2 || - || || || | ||
|- | |- | ||
| fspecial || | | fspecial || 2.6.1 || || || | ||
|- | |- | ||
| ftrans2 || - || || || | | ftrans2 || - || || || | ||
Line 514: | Line 414: | ||
| imboxfilt3 || - || || || | | imboxfilt3 || - || || || | ||
|- | |- | ||
| imfilter || | | imfilter || 2.6.1 || || || | ||
|- | |- | ||
| imgaborfilt || - || || || | | imgaborfilt || - || || || | ||
Line 524: | Line 424: | ||
| imguidedfilter || - || || || | | imguidedfilter || - || || || | ||
|- | |- | ||
| imsmooth|| | | imsmooth|| 2.6.1|| || || Octave only | ||
|- | |- | ||
| integralBoxFilter || - || || || | | integralBoxFilter || - || || || | ||
Line 530: | Line 430: | ||
| integralBoxFilter3 ||- || || || | | integralBoxFilter3 ||- || || || | ||
|- | |- | ||
| integralImage || | | integralImage ||- || || [http://kyamagu.github.io/mexopencv/matlab/integral.html cv.integral] from [https://github.com/kyamagu/mexopencv mexopencv] || | ||
|- | |- | ||
| integralImage3 || | | integralImage3 || - || || || | ||
|- | |- | ||
| medfilt2 || | | medfilt2 || 2.6.1 || {{patch|9235}} || || | ||
|- | |- | ||
| medfilt3 || - || || || | | medfilt3 || - || || || | ||
|- | |- | ||
| nlfilter || | | nlfilter || 2.6.1 || || || | ||
|- | |- | ||
| normxcorr2 || 2. | | normxcorr2 || 2.6.1 || {{bug|50151}} || || | ||
|- | |- | ||
| ordfilt2 || | | ordfilt2 || 2.6.1 || {{patch|9235}} || || | ||
|- | |- | ||
| padarray || | | padarray || 2.6.1 || || || | ||
|- | |- | ||
| rangefilt || | | rangefilt || 2.6.1 || {{bug|45088}} {{patch|9235}} || || | ||
|- | |- | ||
| stdfilt || | | stdfilt || 2.6.1 || {{patch|9235}} || || | ||
|- | |- | ||
| wiener2 || | | wiener2 || dev || || || | ||
|- | |- | ||
|} | |} | ||
[[Category:Octave Forge | [[Category:Octave-Forge]] | ||