is an option for CurrentImage and similar functions that specifies the function to apply to images before being displayed.
ImagePreviewFunction
is an option for CurrentImage and similar functions that specifies the function to apply to images before being displayed.
Details
- Original images are stored in the buffer, and the function specified using ImagePreviewFunction is only applied to them before being displayed.
- Use ImageCaptureFunction to process images before storing in the buffer.
- Typical settings include:
-
Identity no processing f an arbitrary function f
Examples
Basic Examples (1)
By default, the original captured image is displayed in the capture user interface:
CurrentImage[]Apply a function to the images before displaying:
CurrentImage[ImagePreviewFunction -> ColorNegate]Notice the values stored in the buffer are still the original captured frames:
CurrentImage[3]See Also
History
Text
Wolfram Research (2017), ImagePreviewFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/ImagePreviewFunction.html.
CMS
Wolfram Language. 2017. "ImagePreviewFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ImagePreviewFunction.html.
APA
Wolfram Language. (2017). ImagePreviewFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImagePreviewFunction.html
BibTeX
@misc{reference.wolfram_2026_imagepreviewfunction, author="Wolfram Research", title="{ImagePreviewFunction}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/ImagePreviewFunction.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_imagepreviewfunction, organization={Wolfram Research}, title={ImagePreviewFunction}, year={2017}, url={https://reference.wolfram.com/language/ref/ImagePreviewFunction.html}, note=[Accessed: 13-June-2026]}