normalise all images in an imageset
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Newman
am 6 Jul. 2016
Beantwortet: Image Analyst
am 6 Jul. 2016
Hello I want to normalise all the images in an image set using standard deviation and zero mean. for that i ma using my normalisation fucntion. But the thing is that I want to insert all the images in to same imageset database after it has benn normalise. How do i do that ?
for eg this is my code:
for i=1:length(training)
for j=1:training(i).Count
(training(i),j)=normalisation(read(training(i),j));
end
end
where training is 1x40 imageset and each imagetset(i) contains 7 images. But its not storing the way i want that is after normalizing store it in the same location in the same imageset.Is it possible to insert data in to an imageset along with accessing data?
It is showing me the error
(training(i),j)=normalisation(read(training(i),j));
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 6 Jul. 2016
(training(i),j)=....
is not correct syntax for accepting the outputs of a function. You need brackets. Try
[training(i), j] = ....
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!