From ImageJ to Matlab Conversion
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Stelios Fanourakis
el 12 de Jul. de 2018
Comentada: Stelios Fanourakis
el 15 de Jul. de 2018
HI.
Can someone translate this ImageJ piece of code to MATLAB equivalent. If not, is there an app for automated conversion between those two formats?
Thank you
for(i=1;i<=nSlices;i++){
setSlice(i);
run("Translate...", "x="+i*xTranslate+" y="+i*yTranslate+"
interpolation=None slice");
}
6 comentarios
Guillaume
el 12 de Jul. de 2018
Oh, I didn't realised it was you. Well, as you've requested, I will not get involved in your questions.
Guillaume
el 12 de Jul. de 2018
For others, this is a follow-up to
- griddedinterpolant-and-gridvectors-turn-image-to-binary
- does-anyone-know-why-the-images-appear-that-way
- can-imtranslate-and-squeeze-be-combined-to-one-code-line
and many more.
Respuestas (1)
Sean de Wolski
el 12 de Jul. de 2018
Editada: Sean de Wolski
el 12 de Jul. de 2018
Looks like imtranslate should work. My interpretation of that is: loop over slices, translate each slice by some amount (that value may vary by slice - I don't know). You may not be able to do it all in one shot but it should certainly work. Something along these lines, not tested.
VT = zeros(size(V),'like',V)
for ii = 1:size(V,3)
VT(:,:,ii) = imtranslate(V(:,:,ii), [something_row(ii), something_col(ii)])
end
Can you describe what you're trying to do, i.e. what is the end goal?
15 comentarios
Ver también
Categorías
Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!