Bonjour a tous,

J ai quelques problemes pour convertir une image IPL_DEPTH_8U en IPL_DEPTH_32F.

Voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
gradY_cv = cvCreateImage(cvSize(Ii_cv_gray->width, Ii_cv_gray->height),IPL_DEPTH_8U,1)  ; 
bit_img2 = cvCreateImage(cvSize(Ii_cv_gray->width, Ii_cv_gray->height),IPL_DEPTH_32F,1); 
cvCvtScale(  gradY_cv,    bit_img2, 1,0);

Voici l'image non convertie (donc sur 8 bits) :



et l'image que j'obtiens après conversion :



Est-ce normal ?

Merci,
Dud