Closed bhavuk2002 closed 12 months ago
oh ya i was thinking of editing sam_image_u8 but neglected it. will do surely, and update sam_image_u8.
one more thing apart from that logic for load_image_from_file is fine?
in the code base here at line number 340 we are resizing the mask. Do we need to use 4 channels here or 3 are enough for 4 channels too? Apart from this function in main.cpp / examples, there is no hard coding of number of channels left.
can you please elaborate, how can i work forward on this?
Load a png image with alpha channel and test that the sample works. I will try to do that today or tomorrow and look more carefully through your change.
uhm png image doesnt support alpha channel.
https://www.w3.org/TR/PNG-DataRep.html Section 2.4
Okay i was wrong, now what changes should i make and where?
any info or update?
any update?
12
thanks. im new to open source, first i read about image channels and got the understanding what they are, here basically we have to add ALPHA in loading image, we are currently missing that, thats why errors are getting generaated. I read documentation for stbi_load and have modified the code base accordingly and handled error accordingly.
Can someone test it?