calibration in image analysis
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
find (BW==1);
[m,n]= find (BW==1);
pos = [m';n'];
D = zeros(1,448)
for i = 1:length(m)
    i
    D(i,:) = [calibrated_data(m(i),n(i),:)]
end
i have used the above code for calibration but the dataset has 398656 elements and it is taking so long to calibrate like more than 1hr. is there any faster way for calibration??
2 Kommentare
  Benjamin Thompson
      
 am 4 Okt. 2022
				Can you provide more information about what you are calibrating, and maybe a small sample image?  What is the problem?
Antworten (1)
  Udit06
      
 am 29 Sep. 2023
        Hi Chaitanya,
I understand that the code that you have written for calibration is taking a long time to run. You can utilize the following features supported by MATLAB to make your code run faster.
1) Vectorization: Instead of using a loop to iterate over each element, try to use vectorized operations whenever possible. MATLAB is optimized for array operations, and using vectorization can significantly speed up the computation.
2) Parallel Computing: Consider using parallel computing techniques like MATLAB's "parfor" to distribute the workload across multiple workers. 
You can refer to the below MathWorks documentations to understand more about vectorization and “parfor” respectively.
I hope this helps.
0 Kommentare
Siehe auch
Kategorien
				Mehr zu Sparse Matrices finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
