how to make parallelization of different functions in matlab

I created matlab functions for digital image watermarking. Now I want to use multithreading for it. Means want to run my functions on different threads of my machine. Please suggest me. I work with 4096*4096 size iamge and perform watermark embedding and extraction process. Please help me.

9 comentarios

If you have Graphics Card.....try gpuArray.
shital shinde
shital shinde el 10 de Feb. de 2020
Editada: shital shinde el 10 de Feb. de 2020
actually my work is for both GPU core and CPU core. currently, I am working for CPU cores. I want to use multithreding. Please suggets me any idea.
If you can process blocks independently, then you can create a cell array of blocks, and parfor over the linear index of the blocks, processing the block indexed and saving the result as appropriate.
In terms of your posted code: change your
for k=1:262144
to
parfor k=1:262144
Yes I tried that also, but it gives error for variables that I used. please suggest me. I tried parfor insted of for loop but is gives the same error again and again. please suggest me.
It says the parfor loop can not run due to the way the variable 'w' is used.
As far as I can see, your latest code is at
https://www.mathworks.com/matlabcentral/answers/415089-parallel-computing-for-images-processing#comment_796821
But it is difficult to tell as you have spread this conversation out over about 6 locations, duplicating your questions and confusing the volunteers.
Ok. Sorry for this one. Actually I am new for this one. Thats why this issue occurs. Actually my main task is for parallelization of digital image watermarking in matlab. For that I want to first learn image processing using parallel computing. So I need some basic problem statement which clear amout parallel computing. That I have to show my guide. After that I will go for watermarking. So, help me for that please. I am new for this one. And sorry for this inconvenience.
thank you
please give me suggestion for the task.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Feb. de 2020

Comentada:

el 21 de Feb. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by