Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does the 'clip' means? #19

Open
CSGrandeur opened this issue Nov 1, 2016 · 5 comments
Open

What does the 'clip' means? #19

CSGrandeur opened this issue Nov 1, 2016 · 5 comments

Comments

@CSGrandeur
Copy link

I want to use this BM3D algorithm in python.
I used the 'mvsfunc' and feed the function with ndarray(in numpy).
The function returns "TypeError: BM3D: "input" must be a clip!"

How can I use it to process an image?

@msg7086
Copy link
Member

msg7086 commented Nov 1, 2016

I'm not quite sure about what you are doing here, but basically you should feed it with a VapourSynth Clip.
If you have no idea what VapourSynth or a Clip is, please refer to here.
You can also try to port this VapourSynth plugin into Python, if you want to use it outside of VapourSynth.

@CSGrandeur
Copy link
Author

CSGrandeur commented Nov 1, 2016

Thanks for reply. I find that I didn't know VapourSynth before. Maybe I need the 'vsimagereader' for it to access images. https://github.com/chikuzen/vsimagereader

@msg7086
Copy link
Member

msg7086 commented Nov 1, 2016

You would also need something to fetch the output from VapourSynth. Usually we use x264 or x265 to produce a video, and I've never tried to produce an image from that.

@CSGrandeur
Copy link
Author

Thank you. Perhaps I may also try some other libraries.

@mawen1250
Copy link
Member

For reading image in VapourSynth, you can try this: http://forum.doom9.org/showthread.php?t=173633
There's also an ImageMagick Writer-Reader (http://www.vapoursynth.com/doc/plugins/imwri.html#imwri), though it is not recommended.

Alternatively, VapourSynth do provide an interface for raw access to the frame data: http://www.vapoursynth.com/doc/pythonreference.html#raw-access-to-frame-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants