Using image processing toolbox on other computers
Show older comments
I have the Image Processing toolbox on my computer. If I write a code using some function in that toolbox is there anyway someone without the toolbox can run the code? Or can I make like an executable function, for someone without the toolbox or Matlab can run?
Accepted Answer
More Answers (2)
Betelhem
on 26 Dec 2022
0 votes
define what image processing toolbox in matlab
2 Comments
Image Analyst
on 26 Dec 2022
I have absolutely no idea what this Answer means, or how it answers the original question. If you think you have something to add that was not discussed in the other Answer, then please elaborate, because I think your Answer just leaves everyone confused.
DGM
on 27 Dec 2022
This is Image Processing Toolbox:
Here is the documentation root for IPT:
I see two questions, the latter of which is well-answered already. Aside from the prospect of compiling standalone executables, there may be things you can do to remove dependency of basic m-code on Image Processing Toolbox. Before we go that far, consider that a number of very common IPT tools have actually been included in the base toolbox since 2013. For example, imshow() and im2double were moved in R2014b; imresize() was moved sometime after R2015b. Also, maybe it's just my skewed perspective, but it seems to me that more users (especially students) have access to IPT than they did 10-15 years ago.
That said, there are a number of user-contributed implementations of basic tools on the File Exchange. It all depends what you're after, though one should be aware that many are themselves not independent of IPT and may need further work.
For the sake of addressing its own IPT dependency, MIMT includes a number of passthrough/fallback wrappers for basic IPT tools. It also includes a number of tools that aren't wrappers, but may suffice to replace some usage of various IPT tools. For example:
These MIMT tools include conditional fallback implementations which will run in the absence of IPT (or in versions prior to the introduction of the corresponding IPT function). These are not generally drop-in replacements for all use-cases, and the fallback code may be slower than the IPT passthrough. Check the documentation and take note of any differences in supported functionality or syntax.
- adapthisteqFB uses/replaces adapthisteq
- bwareafiltFB uses/replaces bwareafilt
- bwdistFB uses/replaces bwdist
- bwlabelFB uses/replaces bwlabel
- despeckle uses/replaces bwareaopen (default does both opening and closing)
- histeqFB uses/replaces histeq
- hitmiss uses/replaces bwhitmiss
- imadjustFB uses/replaces imadjust
- imcast uses/replaces im2double, im2uint8, etc
- imappmat uses/replaces imapplymatrix (default output class handling differs)
- imcropFB uses/replaces imcrop
- imfilterFB uses/replaces imfilter (default edge handling differs)
- imhistFB uses/replaces imhist
- imresizeFB uses/replaces imresize
- imrotateFB uses/replaces imrotate
- imhistmatchFB uses/replaces imhistmatch
- imnoiseFB uses/replaces imnoise
- imsharpenFB uses/replaces imsharpen
- imshow2 uses/replaces imshow (defaults, view controls, and capabilities differ)
- morphnhood uses/replaces bwmorph, bwperim, (bwlookup to some extent)
- morphops uses/replaces imdilate, imopen, imtophat, etc
- nhfilter uses/replaces medfilt2, stdfilt, rangefilt, (nlfilter to some extent)
- padarrayFB uses/replaces padarray
- stretchlimFB uses/replaces stretchlim
These tools don't passthrough to their IPT counterparts, but may fill the same role depending on your needs. For example:
- edgemap see imgradient, edge
- replacepixels see imoverlay
- fkgen see fspecial
- tonemap see tonemap
- mono see rgb2gray, im2gray, rgb2lightness
- imerror see immse, psnr
- imcheckerboard see checkerboard
- pickblobs see bwselect
- splitchans see imsplit
- iminv see imcomplement
- imclassrange see getrangefromclass
- colordiff see deltaE, imcolordiff
- roifilter see roifilt2
- flattenbg see imflatfield
- unsharp see imsharpen
- immodify see imcontrast
- imcompare see imfuse, imshowpair
- rgb2linear see rgb2lin
- linear2rgb see lin2rgb
- and other color space conversion tools
There are definitely limitations to this approach. MIMT tools are generally dependent on other MIMT tools, so isolating a subset of MIMT tools to include in your own release is a minor chore. More significantly, several very valuable tools like regionprops(), bwconncomp(), and image registration/transformation tools aren't covered by MIMT or other FEX submissions. While that means that user-submitted implementations can't answer OP's need, they might suffice for simpler cases.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!