how to make parallelization of different functions in matlab
Mostrar comentarios más antiguos
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
KSSV
el 10 de Feb. de 2020
If you have Graphics Card.....try gpuArray.
shital shinde
el 10 de Feb. de 2020
Editada: shital shinde
el 10 de Feb. de 2020
Mohammad Sami
el 10 de Feb. de 2020
See if this example is what you are looking for
Walter Roberson
el 10 de Feb. de 2020
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.
Walter Roberson
el 13 de Feb. de 2020
In terms of your posted code: change your
for k=1:262144
to
parfor k=1:262144
shital shinde
el 14 de Feb. de 2020
Walter Roberson
el 14 de Feb. de 2020
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.
shital shinde
el 15 de Feb. de 2020
shital shinde
el 21 de Feb. de 2020
Respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!