में मैं एक spectrogram as in Aphex Twin's song on Windowlicker रूप में यह इलाज द्वारा MATLAB में एक ऑडियो संकेत में एक छवि परिवर्तित करने के लिए कोशिश कर रहा हूँ। दुर्भाग्यवश, मुझे परिणाम प्राप्त करने में परेशानी हो रही है।रिवर्स spectrogram एक ला Aphex ट्विन MATLAB
यहाँ यह है कि मैं क्या समय है:
function signal = imagetosignal(path, format)
% Read in the image and make it symmetric.
image = imread(path, format);
image = [image; flipud(image)];
[row, column] = size(image);
signal = [];
% Take the ifft of each column of pixels and piece together the real-valued results.
for i = 1 : column
spectrogramWindow = image(:, i);
R = abs(ifft(spectrogramWindow));
% Take only the results for the positive frequencies.
signalWindow = R(1 : row/2.0);
signal = [signal; signalWindow];
end
end
तो, मैं मेरी छवि के स्तंभों पर उलटा फूरियर Transforms ले रहा हूँ और फिर उन्हें एक साथ डाल एक संकेत के रूप में। साथ ही, यह फ़ंक्शन छवियों में पढ़ने के लिए MATLAB के लिए छवि प्रसंस्करण टूलबॉक्स का उपयोग करता है। लक्ष्य कुछ है कि मूल छवि की तरह लग रहा में
spectrogram(imagetosignal('image', 'bmp'));
परिणाम के कुछ बदलाव है। मैं किसी भी मदद की सराहना करता हूं! मैं सिर्फ सिग्नल प्रोसेसिंग सीख रहा हूं, इसलिए अगर कोई स्पष्ट गलत धारणा है तो आश्चर्यचकित न हों। धन्यवाद!
संपादित: धन्यवाद डेव! मुझे यह काम मिल गया! मैं इस के साथ समाप्त हो गया:
function signal = imagetosignal(path, format)
% Read in the image and make it symmetric.
image = imread(path, format);
image = [image; flipud(image)];
[row, column] = size(image);
signal = [];
% Take the ifft of each column of pixels and piece together the results.
for i = 1 : column
spectrogramWindow = image(:, i);
signalWindow = real(ifft(spectrogramWindow));
signal = [signal; signalWindow];
end
end
तो, मुसीबत आ रही हैं कि वास्तव में क्या है? – gnovice
वापस रास्ते पर, छवि का शीर्ष आधा प्रभावी रूप से गायब हो रहा है, और क्या धुंध ऊपर से डरता रहता है। –
खुशी है कि यह काम कर रहा है। मेरा जवाब चुनने के लिए स्वतंत्र महसूस करें;) –